Yassine Doghri 63f93f585b fix: update select and multi-select options to value/label arrays
add hint to select options + update dependencies to latest
2024-11-06 13:19:59 +00:00

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;
}