1 | <?php |
||
14 | class BreadcrumbsNode |
||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $path; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $label; |
||
25 | |||
26 | /** |
||
27 | * BreadcrumbsNode constructor. |
||
28 | * |
||
29 | * @param string $path |
||
30 | * @param string $label |
||
31 | */ |
||
32 | public function __construct($path = null, $label = null) |
||
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getPath() |
||
45 | |||
46 | /** |
||
47 | * @param string $path |
||
48 | * |
||
49 | * @return BreadcrumbsNode |
||
50 | */ |
||
51 | public function setPath($path) |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | public function getLabel() |
||
65 | |||
66 | /** |
||
67 | * @param string $label |
||
68 | * |
||
69 | * @return BreadcrumbsNode |
||
70 | */ |
||
71 | public function setLabel($label) |
||
77 | |||
78 | public function __toString() |
||
82 | } |
||
83 |