Address::street()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * This file is part of the Cubiche package.
4
 *
5
 * Copyright (c) Cubiche
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Cubiche\Domain\Repository\Tests\Fixtures;
12
13
use Cubiche\Domain\Geolocation\Coordinate;
14
use Cubiche\Domain\Model\Entity;
15
16
/**
17
 * Address.
18
 *
19
 * @author Ivannis Suárez Jerez <[email protected]>
20
 */
21
class Address extends Entity
22
{
23
    /**
24
     * @var string
25
     */
26
    protected $name;
27
28
    /**
29
     * @var string
30
     */
31
    protected $street;
32
33
    /**
34
     * @var string
35
     */
36
    protected $zipcode;
37
38
    /**
39
     * @var string
40
     */
41
    protected $city;
42
43
    /**
44
     * @var Coordinate
45
     */
46
    protected $coordinate;
47
48
    /**
49
     * Address constructor.
50
     *
51
     * @param AddressId  $id
52
     * @param string     $name
53
     * @param string     $street
54
     * @param string     $zipcode
55
     * @param string     $city
56
     * @param Coordinate $coordinate
57
     */
58
    public function __construct(AddressId $id, $name, $street, $zipcode, $city, Coordinate $coordinate)
59
    {
60
        parent::__construct($id);
61
62
        $this->name = $name;
63
        $this->street = $street;
64
        $this->zipcode = $zipcode;
65
        $this->city = $city;
66
        $this->coordinate = $coordinate;
67
    }
68
69
    /**
70
     * @return string
71
     */
72
    public function name()
73
    {
74
        return $this->name;
75
    }
76
77
    /**
78
     * @return string
79
     */
80
    public function street()
81
    {
82
        return $this->street;
83
    }
84
85
    /**
86
     * @return string
87
     */
88
    public function zipcode()
89
    {
90
        return $this->zipcode;
91
    }
92
93
    /**
94
     * @return string
95
     */
96
    public function city()
97
    {
98
        return $this->city;
99
    }
100
101
    /**
102
     * @return Coordinate
103
     */
104
    public function coordinate()
105
    {
106
        return $this->coordinate;
107
    }
108
}
109