Completed
Push — master ( 4dde40...07e98f )
by Daniel
02:28
created

Address   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 33
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getStreet() 0 4 1
A getNumber() 0 4 1
A getZipCode() 0 4 1
A __toString() 0 4 1
1
<?php
2
3
namespace Application\Tests\Domain\Fixtures;
4
5
use Application\Domain\ValueObjectInterface;
6
7
class Address implements ValueObjectInterface
8
{
9
    private $street;
10
    private $number;
11
    private $zipcode;
12
13
    public function __construct($street, $number, $zipcode)
14
    {
15
        $this->street = $street;
16
        $this->number = $number;
17
        $this->zipcode = $zipcode;
18
    }
19
20
    public function getStreet()
21
    {
22
        return $this->street;
23
    }
24
25
    public function getNumber()
26
    {
27
        return $this->number;
28
    }
29
30
    public function getZipCode()
31
    {
32
        return $this->zipcode;
33
    }
34
35
    public function __toString()
36
    {
37
        return join(', ', [$this->street, $this->number, $this->zipcode]);
38
    }
39
}