1 | <?php |
||
18 | trait BaseTrait |
||
19 | { |
||
20 | /** |
||
21 | * @var bool |
||
22 | */ |
||
23 | public $allowText = true; |
||
24 | |||
25 | /** |
||
26 | * @var bool |
||
27 | */ |
||
28 | public $requireText = false; |
||
29 | |||
30 | /** |
||
31 | * @var bool |
||
32 | */ |
||
33 | public $showTarget = false; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | public $target = "_self"; |
||
39 | |||
40 | /** |
||
41 | * @var string|null |
||
42 | */ |
||
43 | public $overrideText; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | */ |
||
48 | public $label; |
||
49 | |||
50 | /** |
||
51 | * @var string |
||
52 | */ |
||
53 | protected $identifier; |
||
54 | |||
55 | /** |
||
56 | * @return string |
||
57 | */ |
||
58 | abstract public function getUrl(): string; |
||
59 | |||
60 | /** |
||
61 | * @return string|null |
||
62 | */ |
||
63 | public function getText() |
||
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | public function getIdentifier(): string |
||
82 | |||
83 | /** |
||
84 | * @param string $identifier |
||
85 | * @return string |
||
86 | */ |
||
87 | public function setIdentifier(string $identifier): string |
||
92 | |||
93 | /** |
||
94 | * @return array |
||
95 | */ |
||
96 | public function properties(): array |
||
100 | |||
101 | /** |
||
102 | * @return array |
||
103 | */ |
||
104 | public function getProperties(): array |
||
114 | |||
115 | /** |
||
116 | * @inheritdoc |
||
117 | */ |
||
118 | public function attributes() |
||
126 | |||
127 | /** |
||
128 | * @inheritdoc |
||
129 | */ |
||
130 | public function settings(): array |
||
139 | |||
140 | /** |
||
141 | * @inheritdoc |
||
142 | */ |
||
143 | public function getSettings(): array |
||
153 | |||
154 | /** |
||
155 | * @param array $attributes |
||
156 | * @return string |
||
157 | */ |
||
158 | public function getHtml(array $attributes = []): string |
||
187 | |||
188 | /** |
||
189 | * @return string |
||
190 | */ |
||
191 | public function __toString() |
||
195 | } |
||
196 |