TagStub   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 3
dl 0
loc 14
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setName() 0 2 1
A getTags() 0 3 1
A getName() 0 3 1
1
<?php
2
3
namespace Beelab\TagBundle\Tests;
4
5
use Beelab\TagBundle\Tag\TagInterface;
6
7
/**
8
 * A stub of a Tag class.
9
 */
10
class TagStub implements TagInterface
11
{
12
    public function setName(?string $name): void
13
    {
14
    }
15
16
    public function getName(): ?string
17
    {
18
        return 'a name';
19
    }
20
21
    public function getTags(): ?string
22
    {
23
        return 'a name';
24
    }
25
}
26