Completed
Push — master ( 8e28ab...2236d8 )
by Taosikai
15:04
created

Address   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getLatitude() 0 4 1
A setLatitude() 0 6 1
A getLongitude() 0 4 1
A setLongitude() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the slince/shopify-api-php
5
 *
6
 * (c) Taosikai <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Slince\Shopify\Manager\Order;
13
14
use Slince\Shopify\Manager\CustomerAddress\AddressTrait;
15
16
class Address
17
{
18
    use AddressTrait;
19
    
20
    /**
21
     * @var float
22
     */
23
    protected $latitude;
24
25
    /**
26
     * @var float
27
     */
28
    protected $longitude;
29
30
    /**
31
     * @return float
32
     */
33
    public function getLatitude()
34
    {
35
        return $this->latitude;
36
    }
37
38
    /**
39
     * @param float $latitude
40
     * @return Address
41
     */
42
    public function setLatitude($latitude)
43
    {
44
        $this->latitude = $latitude;
45
46
        return $this;
47
    }
48
49
    /**
50
     * @return float
51
     */
52
    public function getLongitude()
53
    {
54
        return $this->longitude;
55
    }
56
57
    /**
58
     * @param float $longitude
59
     * @return Address
60
     */
61
    public function setLongitude($longitude)
62
    {
63
        $this->longitude = $longitude;
64
65
        return $this;
66
    }
67
}