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

PutSimpleItemToCart::quantity()   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
final class PutSimpleItemToCart
6
{
7
    /**
8
     * @var string
9
     */
10
    private $token;
11
12
    /**
13
     * @var string
14
     */
15
    private $product;
16
17
    /**
18
     * @var int
19
     */
20
    private $quantity;
21
22
    /**
23
     * @param string $token
24
     * @param string $product
25
     * @param int $quantity
26
     */
27
    public function __construct($token, $product, $quantity)
28
    {
29
        $this->token = $token;
30
        $this->product = $product;
31
        $this->quantity = $quantity;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function token()
38
    {
39
        return $this->token;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function product()
46
    {
47
        return $this->product;
48
    }
49
50
    /**
51
     * @return int
52
     */
53
    public function quantity()
54
    {
55
        return $this->quantity;
56
    }
57
}
58