CartItem   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 37
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getItemId() 0 4 1
A setItemId() 0 4 1
A getSku() 0 4 1
A getQuantity() 0 4 1
1
<?php
2
3
/*
4
 * This file has been created by developers from BitBag.
5
 * Feel free to contact us once you face any issues or want to start
6
 * another great project.
7
 * You can find more information about us on https://bitbag.io and write us
8
 * an email on [email protected].
9
 */
10
11
declare(strict_types=1);
12
13
namespace BitBag\SyliusVueStorefrontPlugin\Model\Request\Cart;
14
15
use BitBag\SyliusVueStorefrontPlugin\Model\Request\Cart\CartItem\ProductOption;
16
17
class CartItem
18
{
19
    /** @var string */
20
    public $sku;
21
22
    /** @var int */
23
    public $qty;
24
25
    /** @var int|null */
26
    public $item_id;
27
28
    /** @var string|null */
29
    public $quoteId;
30
31
    /** @var ProductOption */
32
    public $product_option;
33
34
    public function getItemId(): ?int
35
    {
36
        return $this->item_id;
37
    }
38
39
    public function setItemId(?int $item_id): void
40
    {
41
        $this->item_id = $item_id;
42
    }
43
44
    public function getSku(): string
45
    {
46
        return $this->sku;
47
    }
48
49
    public function getQuantity(): int
50
    {
51
        return $this->qty;
52
    }
53
}
54