Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | class ViewTag |
||
13 | { |
||
14 | /** @var string $name */ |
||
15 | private $name; |
||
16 | const PREFIX = "action"; |
||
17 | const DELIMITER = "::"; |
||
18 | |||
19 | /** |
||
20 | * ViewTag constructor. |
||
21 | * @param string $name |
||
22 | */ |
||
23 | public function __construct(string $name) |
||
24 | { |
||
25 | $this->name = $name; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return string |
||
30 | */ |
||
31 | public function getId() |
||
32 | { |
||
33 | return self::PREFIX . self::DELIMITER . Html::encode($this->name); |
||
34 | } |
||
35 | |||
36 | public function __toString() |
||
39 | } |
||
40 | |||
41 | |||
42 | } |