mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-10 16:25:47 +00:00
26 lines
466 B
PHP
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;
|
||
|
}
|