Completed
Pull Request — master (#19)
by
unknown
01:09
created

TaggableStub::getTagNames()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Beelab\TagBundle\Test;
4
5
use Beelab\TagBundle\Tag\TaggableInterface;
6
use Beelab\TagBundle\Tag\TagInterface;
7
8
/**
9
 * A stub of a Taggable class.
10
 */
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 removeTag(TagInterface $tag): void
28
    {
29
    }
30
}
31