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

Address::__toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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
}