| 1 | <?php |
||
| 12 | class Hidden implements ValidatableElementInterface, StringDataElementInterface { |
||
| 13 | |||
| 14 | use StringValidationTrait; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $name; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $value; |
||
| 25 | |||
| 26 | |||
| 27 | public function __construct(string $name, string $value = null) { |
||
| 31 | |||
| 32 | |||
| 33 | public function setValue(string $value) : self { |
||
| 37 | |||
| 38 | |||
| 39 | public function getValue() : string { |
||
| 42 | |||
| 43 | |||
| 44 | /** |
||
| 45 | * @param FormData $request |
||
| 46 | * @return $this |
||
| 47 | */ |
||
| 48 | public function handle(FormData $request) { |
||
| 53 | |||
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getName() { |
||
| 61 | |||
| 62 | |||
| 63 | /** |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | public function render() { |
||
| 73 | |||
| 74 | |||
| 75 | } |