castopod/modules/Plugins/Manifest/Option.php
2024-06-14 15:53:33 +00:00

26 lines
466 B
PHP

<?php
declare(strict_types=1);
namespace Modules\Plugins\Manifest;
/**
* @property string $label
* @property string $value
* @property ?string $hint
*/
class Option extends ManifestObject
{
protected const VALIDATION_RULES = [
'label' => 'required|string',
'value' => 'required|alpha_dash',
'hint' => 'permit_empty|string',
];
protected string $label;
protected string $value;
protected ?string $hint = null;
}