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

ChooseShippingMethod::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 6
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
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