| 1 | <?php |
||
| 14 | abstract class BaseElement { |
||
| 15 | |||
| 16 | private $title; |
||
| 17 | private $text; |
||
| 18 | private $link; |
||
| 19 | |||
| 20 | 78 | public function setTitle( string $title ) { |
|
| 23 | |||
| 24 | 76 | public function setText( string $text ) { |
|
| 27 | |||
| 28 | public function setLink( string $link ) { |
||
| 31 | |||
| 32 | 5 | public function getArrayValue() { |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @deprecated |
||
| 38 | */ |
||
| 39 | 23 | public function getJSONObject( string $defText = '', string $defTitle = '' ): array { |
|
| 46 | |||
| 47 | public function getText(): string { |
||
| 50 | |||
| 51 | public function getTitle(): string { |
||
| 54 | |||
| 55 | public function getLink(): string { |
||
| 58 | |||
| 59 | } |
||
| 60 |
This method has been deprecated.