TaggableStub::addTag()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Beelab\TagBundle\Tests;
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 hasTag(TagInterface $tag): bool
28
    {
29
        return true;
30
    }
31
32
    public function removeTag(TagInterface $tag): void
33
    {
34
    }
35
}
36