misc_pterodactyl-panel/app/Contracts/Repository/SettingsRepositoryInterface.php

29 lines
691 B
PHP
Raw Permalink Normal View History

<?php
namespace Pterodactyl\Contracts\Repository;
interface SettingsRepositoryInterface extends RepositoryInterface
{
/**
* Store a new persistent setting in the database.
*
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
*/
public function set(string $key, string $value = null);
/**
* Retrieve a persistent setting from the database.
*
2019-09-06 04:32:57 +00:00
* @param mixed $default
2021-01-23 20:33:34 +00:00
*
* @return mixed
*/
public function get(string $key, $default);
/**
* Remove a key from the database cache.
*/
public function forget(string $key);
}