Total Complexity | 5 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class TaggableStub implements TaggableInterface |
||
12 | { |
||
13 | public function addTag(TagInterface $tag): void |
||
14 | { |
||
15 | } |
||
16 | |||
17 | public function getTagNames(): array |
||
18 | { |
||
19 | return ['foo', 'bar']; |
||
20 | } |
||
21 | |||
22 | public function getTags(): iterable |
||
23 | { |
||
24 | return [new TagStub()]; |
||
25 | } |
||
26 | |||
27 | public function hasTag(TagInterface $tag): bool |
||
28 | { |
||
29 | return true; |
||
30 | } |
||
31 | |||
32 | public function removeTag(TagInterface $tag): void |
||
34 | } |
||
35 | } |
||
36 |