1 | <?php |
||
12 | abstract class BaseElement { |
||
13 | |||
14 | private $title; |
||
15 | private $text; |
||
16 | private $link; |
||
17 | |||
18 | 8 | public function setTitle( string $title ) { |
|
21 | |||
22 | 5 | public function setText( string $text ) { |
|
25 | |||
26 | public function setLink( string $link ) { |
||
29 | |||
30 | 5 | public function getArrayValue() { |
|
33 | |||
34 | /** |
||
35 | * @deprecated |
||
36 | */ |
||
37 | 18 | public function getJSONObject( string $defText = '', string $defTitle = '' ): array { |
|
44 | |||
45 | public function getText(): string { |
||
48 | |||
49 | public function getTitle(): string { |
||
52 | |||
53 | public function getLink(): string { |
||
56 | |||
57 | } |
||
58 |
This method has been deprecated.