mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 04:51:17 +00:00
26 lines
475 B
PHP
26 lines
475 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_numeric_punct',
|
|
'hint' => 'permit_empty|string',
|
|
];
|
|
|
|
protected string $label;
|
|
|
|
protected string $value;
|
|
|
|
protected ?string $hint = null;
|
|
}
|