ShippingCourier   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 95
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

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 6 1
A setName() 0 6 1
A setTracking() 0 6 1
A setPriority() 0 6 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
71
        return $this;
72
    }
73
74
    /**
75
     * @param string $name
76
     * @return $this
77
     */
78
    public function setName($name)
79
    {
80
        $this->name = $name;
81
82
        return $this;
83
    }
84
85
    /**
86
     * @param string $tracking
87
     * @return $this
88
     */
89
    public function setTracking($tracking)
90
    {
91
        $this->tracking = $tracking;
92
93
        return $this;
94
    }
95
96
    /**
97
     * @param string $priority
98
     * @return $this
99
     */
100
    public function setPriority($priority)
101
    {
102
        $this->priority = $priority;
103
104
        return $this;
105
    }
106
}
107