| 1 | <?php |
||
| 9 | abstract class Button implements Template |
||
| 10 | { |
||
| 11 | protected $label; |
||
| 12 | |||
| 13 | 3 | public function __construct(string $label) |
|
| 17 | |||
| 18 | /** |
||
| 19 | * Get name. |
||
| 20 | * |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | 3 | public function getName(): string |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Get label. |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | 3 | public function getLabel(): ?string |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Set label. |
||
| 40 | * |
||
| 41 | * @param string $label |
||
| 42 | * |
||
| 43 | * @return static |
||
| 44 | */ |
||
| 45 | public function setLabel(string $label) |
||
| 51 | } |
||
| 52 |