Test Failed
Push — master ( a380eb...a52ae2 )
by Hannes
01:59
created

AnonymousName::equals()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace hanneskod\readmetester\Name;
6
7
final class AnonymousName implements NameInterface
8
{
9
    /** @var string */
10
    private $namespace;
11
12
    public function __construct(string $namespace)
13
    {
14
        $this->namespace = $namespace;
15
    }
16
17
    public function getCompleteName(): string
18
    {
19
        return $this->getNamespaceName() . self::NAME_DELIMITER . $this->getShortName();
20
    }
21
22
    public function getShortName(): string
23
    {
24
        return 'UNNAMED';
25
    }
26
27
    public function getNamespaceName(): string
28
    {
29
        return $this->namespace;
30
    }
31
32
    public function equals(NameInterface $name): bool
33
    {
34
        return false;
35
    }
36
}
37