Passed
Push — master ( 67a5da...c35f7b )
by Jared
01:13
created

ShippingCourier   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 91
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 0
dl 0
loc 91
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getShippedAt() 0 4 1
A getName() 0 4 1
A getTracking() 0 4 1
A getPriority() 0 4 1
A setShippedAt() 0 5 1
A setName() 0 5 1
A setTracking() 0 5 1
A setPriority() 0 5 1
1
<?php
2
3
namespace CultureKings\Afterpay\Model\Merchant;
4
5
use DateTime;
6
7
/**
8
 * Class ShippingCourier
9
 *
10
 * @package CultureKings\Afterpay\Model\Merchant
11
 */
12
class ShippingCourier
13
{
14
    /**
15
     * @var DateTime
16
     */
17
    protected $shippedAt;
18
    /**
19
     * @var string
20
     */
21
    protected $name;
22
    /**
23
     * @var string
24
     */
25
    protected $tracking;
26
    /**
27
     * @var string
28
     */
29
    protected $priority;
30
31
    /**
32
     * @return DateTime
33
     */
34
    public function getShippedAt()
35
    {
36
        return $this->shippedAt;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getName()
43
    {
44
        return $this->name;
45
    }
46
47
    /**
48
     * @return string
49
     */
50
    public function getTracking()
51
    {
52
        return $this->tracking;
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getPriority()
59
    {
60
        return $this->priority;
61
    }
62
63
    /**
64
     * @param DateTime $shippedAt
65
     * @return $this
66
     */
67
    public function setShippedAt(DateTime $shippedAt)
68
    {
69
        $this->shippedAt = $shippedAt;
70
        return $this;
71
    }
72
73
    /**
74
     * @param $name
75
     * @return $this
76
     */
77
    public function setName($name)
78
    {
79
        $this->name = $name;
80
        return $this;
81
    }
82
83
    /**
84
     * @param $tracking
85
     * @return $this
86
     */
87
    public function setTracking($tracking)
88
    {
89
        $this->tracking = $tracking;
90
        return $this;
91
    }
92
93
    /**
94
     * @param $priority
95
     * @return $this
96
     */
97
    public function setPriority($priority)
98
    {
99
        $this->priority = $priority;
100
        return $this;
101
    }
102
}
103