1 | <?php |
||
9 | class Text implements InputInterface { |
||
10 | |||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $key; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $value; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $size; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $readonly; |
||
30 | |||
31 | /** |
||
32 | * @param string $key |
||
33 | * @param string|null $value |
||
34 | * @param string $size |
||
35 | * @param bool $readonly |
||
36 | * |
||
37 | * @return string |
||
|
|||
38 | */ |
||
39 | public function __construct( string $key, $value, string $size = '30', bool $readonly = false ) { |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | public function render(): string { |
||
59 | |||
60 | } |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.