Test Setup Failed
Push — master ( de81f2...3dc847 )
by Tomasz
02:50
created

AbstractId   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 23
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getId() 0 4 1
1
<?php
2
/**
3
 * Copyright
4
 */
5
namespace Hexarchium\CoreDomain\ValueObject;
6
7
8
abstract class AbstractId implements IdInterface
9
{
10
    /** @var  string */
11
    private $id;
12
13
    /**
14
     * Id constructor.
15
     *
16
     * @param string $id
17
     */
18
    public function __construct($id)
19
    {
20
        $this->id = $id;
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getId()
27
    {
28
        return $this->id;
29
    }
30
}