Total Complexity | 5 |
Total Lines | 61 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | class Layout extends AbstractDefinitionComponent |
||
24 | { |
||
25 | /** |
||
26 | * @var string |
||
27 | * |
||
28 | * @validate NotEmpty |
||
29 | */ |
||
30 | protected $identifier; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $label; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | * |
||
40 | * @validate NotEmpty |
||
41 | */ |
||
42 | protected $path; |
||
43 | |||
44 | /** |
||
45 | * @param string $identifier |
||
46 | * @param string $path |
||
47 | */ |
||
48 | public function __construct(string $identifier, string $path) |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | public function getIdentifier(): string |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * @return bool |
||
64 | */ |
||
65 | public function hasLabel(): bool |
||
66 | { |
||
67 | return strlen(trim($this->label)) > 0; |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getLabel(): string |
||
76 | } |
||
77 | |||
78 | /** |
||
79 | * @return string |
||
80 | */ |
||
81 | public function getPath(): string |
||
86 |