Completed
Push — master ( 6ad5a2...634c9e )
by Łukasz
12s
created

RemoveItemFromCart::itemIdentifier()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Sylius\ShopApiPlugin\Command;
4
5
use Webmozart\Assert\Assert;
6
7
final class RemoveItemFromCart
8
{
9
    /**
10
     * @var string
11
     */
12
    private $orderToken;
13
14
    /**
15
     * @var mixed
16
     */
17
    private $itemIdentifier;
18
19
    /**
20
     * @param string $orderToken
21
     * @param mixed $itemIdentifier
22
     */
23
    public function __construct(string $orderToken, $itemIdentifier)
24
    {
25
        Assert::string($orderToken, 'Expected order token to be string, got %s');
26
27
        $this->orderToken = $orderToken;
28
        $this->itemIdentifier = $itemIdentifier;
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function orderToken(): string
35
    {
36
        return $this->orderToken;
37
    }
38
39
    /**
40
     * @return mixed
41
     */
42
    public function itemIdentifier()
43
    {
44
        return $this->itemIdentifier;
45
    }
46
}
47