Completed
Push — master ( 262c8d...48f584 )
by Julien
9s
created

CartItemDetail   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 75
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 6
lcom 1
cbo 1
dl 0
loc 75
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 5 1
A getName() 0 4 1
A setName() 0 5 1
A getCartItem() 0 4 1
A setCartItem() 0 6 1
1
<?php
2
3
namespace Mapado\RestClientSdk\Tests\Model\JsonLd;
4
5
/**
6
 * Class CartItemDetail
7
 * @author Julien Deniau <[email protected]>
8
 */
9
class CartItemDetail
10
{
11
    private $id;
12
13
    private $name;
14
15
    private $cartItem;
16
17
    /**
18
     * Getter for id
19
     *
20
     * @return string
21
     */
22
    public function getId()
23
    {
24
        return $this->id;
25
    }
26
27
    /**
28
     * Setter for id
29
     *
30
     * @param string $id
31
     * @return CartItemDetail
32
     */
33
    public function setId($id)
34
    {
35
        $this->id = $id;
36
        return $this;
37
    }
38
39
    /**
40
     * Getter for name
41
     *
42
     * @return string
43
     */
44
    public function getName()
45
    {
46
        return $this->name;
47
    }
48
49
    /**
50
     * Setter for name
51
     *
52
     * @param string $name
53
     * @return CartItemDetail
54
     */
55
    public function setName($name)
56
    {
57
        $this->name = $name;
58
        return $this;
59
    }
60
61
    /**
62
     * Getter for cartItem
63
     *
64
     * @return CartItem
65
     */
66
    public function getCartItem()
67
    {
68
        return $this->cartItem;
69
    }
70
71
    /**
72
     * Setter for cartItem
73
     *
74
     * @param CartItem $cartItem
75
     * @return CartItemDetail
76
     */
77
    public function setCartItem(CartItem $cartItem)
78
    {
79
        $this->cartItem = $cartItem;
80
        $cartItem->addCartItemDetailList($this);
81
        return $this;
82
    }
83
}
84