for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Leonidas\Library\System\Setting;
use Leonidas\Contracts\System\Setting\SettingHandlerInterface;
use Leonidas\Contracts\System\Setting\SettingInterface;
use Leonidas\Library\System\Setting\Traits\HasSettingDataTrait;
class Setting implements SettingInterface
{
use HasSettingDataTrait;
public function __construct(
string $optionGroup,
string $optionName,
?string $type = null,
?string $description = null,
?SettingHandlerInterface $handler = null,
$restSchema = null,
$defaultValue = null,
?array $extraArgs = null
) {
$this->optionGroup = $optionGroup;
$this->optionName = $optionName;
$this->handler = $handler;
$type && $this->type = $type;
$description && $this->description = $description;
$restSchema && $this->restSchema = $restSchema;
$defaultValue && $this->defaultValue = $defaultValue;
$extraArgs && $this->extraArgs = $extraArgs;
}