Completed
Push — master ( 41948a...5bb6bb )
by Łukasz
17:08 queued 13:33
created

ChooseShippingMethod   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A orderToken() 0 4 1
A shippingMethod() 0 4 1
A shipmentIdentifier() 0 4 1
1
<?php
2
3
namespace Sylius\ShopApiPlugin\Command;
4
5
final class ChooseShippingMethod
6
{
7
    /**
8
     * @var mixed
9
     */
10
    private $shipmentIdentifier;
11
12
    /**
13
     * @var string
14
     */
15
    private $shippingMethod;
16
17
    /**
18
     * @var string
19
     */
20
    private $orderToken;
21
22
    /**
23
     * @param string $orderToken
24
     * @param mixed $shipmentIdentifier
25
     * @param string $shippingMethod
26
     */
27
    public function __construct($orderToken, $shipmentIdentifier, $shippingMethod)
28
    {
29
        $this->orderToken = $orderToken;
30
        $this->shipmentIdentifier = $shipmentIdentifier;
31
        $this->shippingMethod = $shippingMethod;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function orderToken()
38
    {
39
        return $this->orderToken;
40
    }
41
42
    /**
43
     * @return mixed
44
     */
45
    public function shipmentIdentifier()
46
    {
47
        return $this->shipmentIdentifier;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function shippingMethod()
54
    {
55
        return $this->shippingMethod;
56
    }
57
}
58