| 1 | <?php |
||
| 10 | class Hidden implements DataElementInterface { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $name; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $value; |
||
| 21 | |||
| 22 | |||
| 23 | 3 | public function __construct(string $name, string $value = null) { |
|
| 27 | |||
| 28 | |||
| 29 | public function setValue(string $value) : self { |
||
| 33 | |||
| 34 | |||
| 35 | public function getValue() : string { |
||
| 38 | |||
| 39 | |||
| 40 | /** |
||
| 41 | * @param FormData $request |
||
| 42 | * @return $this |
||
| 43 | */ |
||
| 44 | public function handle(FormData $request) { |
||
| 48 | |||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | 3 | public function getName() { |
|
| 56 | |||
| 57 | |||
| 58 | /** |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | 3 | public function render() { |
|
| 68 | |||
| 69 | } |