Passed
Pull Request — master (#157)
by Rudger
03:17
created

LocatorRequest   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 92
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 9
lcom 0
cbo 2
dl 0
loc 92
ccs 24
cts 24
cp 1
rs 10
c 0
b 0
f 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getLocationSearchCriteria() 0 4 1
A getOriginAddress() 0 4 1
A setOriginAddress() 0 4 1
A getTranslate() 0 4 1
A setTranslate() 0 4 1
A getUnitOfMeasurement() 0 4 1
A setUnitOfMeasurement() 0 4 1
A setLocationSearchCriteria() 0 4 1
1
<?php
2
3
namespace Ups\Entity;
4
5
class LocatorRequest
6
{
7
    /**
8
     * @var
9
     */
10
    private $originAddress;
11
12
    /**
13
     * @var
14
     */
15
    private $translate;
16
17
    /**
18
     * @var LocationSearchCriteria
19
     */
20
    private $locationSearchCriteria;
21
22
    /**
23
     * @var
24
     */
25
    private $unitOfMeasurement;
26
27 4
    public function __construct()
28
    {
29 4
        $this->setOriginAddress(new OriginAddress());
30 4
        $this->setTranslate(new Translate());
31 4
    }
32
33
    /**
34
     * @return LocationSearchCriteria
35
     */
36 3
    public function getLocationSearchCriteria()
37
    {
38 3
        return $this->locationSearchCriteria;
39
    }
40
41
    /**
42
     * @param LocationSearchCriteria $locationSearchCriteria
43
     */
44 2
    public function setLocationSearchCriteria($locationSearchCriteria)
45
    {
46 2
        $this->locationSearchCriteria = $locationSearchCriteria;
47 2
    }
48
49
    /**
50
     * @return mixed
51
     */
52 3
    public function getOriginAddress()
53
    {
54 3
        return $this->originAddress;
55
    }
56
57
    /**
58
     * @param mixed $originAddress
59
     */
60 4
    public function setOriginAddress(OriginAddress $originAddress)
61
    {
62 4
        $this->originAddress = $originAddress;
63 4
    }
64
65
    /**
66
     * @return mixed
67
     */
68 3
    public function getTranslate()
69
    {
70 3
        return $this->translate;
71
    }
72
73
    /**
74
     * @param mixed $translate
75
     */
76 4
    public function setTranslate(Translate $translate)
77
    {
78 4
        $this->translate = $translate;
79 4
    }
80
81
    /**
82
     * @return mixed
83
     */
84 3
    public function getUnitOfMeasurement()
85
    {
86 3
        return $this->unitOfMeasurement;
87
    }
88
89
    /**
90
     * @param mixed $unitOfMeasurement
91
     */
92 3
    public function setUnitOfMeasurement(UnitOfMeasurement $unitOfMeasurement)
93
    {
94 3
        $this->unitOfMeasurement = $unitOfMeasurement;
95 3
    }
96
}
97