1 | <?php |
||
8 | class Breadcrumbs implements \Iterator, \ArrayAccess, \Countable |
||
9 | { |
||
10 | /** |
||
11 | * @var Item[] |
||
12 | */ |
||
13 | protected $items = []; |
||
14 | |||
15 | /** |
||
16 | * @param string $text |
||
17 | * @param string|null $url |
||
18 | * @return Breadcrumbs |
||
19 | */ |
||
20 | public function addItem(string $text, string $url = null): Breadcrumbs |
||
30 | |||
31 | /** |
||
32 | * @param mixed $offset |
||
33 | * @return bool |
||
34 | */ |
||
35 | public function offsetExists($offset): bool |
||
39 | |||
40 | /** |
||
41 | * @param mixed $offset |
||
42 | * @return mixed |
||
43 | */ |
||
44 | public function offsetGet($offset) |
||
48 | |||
49 | /** |
||
50 | * @param mixed $offset |
||
51 | * @param mixed $value |
||
52 | */ |
||
53 | public function offsetSet($offset, $value): void |
||
61 | |||
62 | /** |
||
63 | * @param mixed $offset |
||
64 | */ |
||
65 | public function offsetUnset($offset): void |
||
69 | |||
70 | /** |
||
71 | * @return int |
||
72 | */ |
||
73 | public function count(): int |
||
77 | |||
78 | /** |
||
79 | * @return Item |
||
80 | */ |
||
81 | public function current(): Item |
||
85 | |||
86 | /** |
||
87 | * @return void |
||
88 | */ |
||
89 | public function next(): void |
||
93 | |||
94 | /** |
||
95 | * @return int|null |
||
96 | */ |
||
97 | public function key(): ?int |
||
101 | |||
102 | /** |
||
103 | * @return bool |
||
104 | */ |
||
105 | public function valid(): bool |
||
109 | |||
110 | /** |
||
111 | * @return void |
||
112 | */ |
||
113 | public function rewind(): void |
||
117 | } |