Total Complexity | 5 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | final class ExampleName implements NameInterface |
||
8 | { |
||
9 | /** @var string */ |
||
10 | private $shortName; |
||
11 | |||
12 | /** @var string */ |
||
13 | private $namespace; |
||
14 | |||
15 | public function __construct(string $shortName, string $namespace) |
||
16 | { |
||
17 | $this->shortName = $shortName; |
||
18 | $this->namespace = $namespace; |
||
19 | } |
||
20 | |||
21 | public function getCompleteName(): string |
||
22 | { |
||
23 | return $this->getNamespaceName() . self::NAME_DELIMITER . $this->getShortName(); |
||
24 | } |
||
25 | |||
26 | public function getShortName(): string |
||
27 | { |
||
28 | return $this->shortName; |
||
29 | } |
||
30 | |||
31 | public function getNamespaceName(): string |
||
34 | } |
||
35 | |||
36 | public function equals(NameInterface $name): bool |
||
39 | } |
||
40 | } |
||
41 |