Total Complexity | 6 |
Total Lines | 82 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | class Item { |
||
18 | /** |
||
19 | * The number |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | private $number; |
||
24 | |||
25 | /** |
||
26 | * The description |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | private $description; |
||
31 | |||
32 | /** |
||
33 | * The quantity |
||
34 | * |
||
35 | * @var int |
||
36 | */ |
||
37 | private $quantity; |
||
38 | |||
39 | /** |
||
40 | * The price |
||
41 | * |
||
42 | * @var Money |
||
43 | */ |
||
44 | private $price; |
||
45 | |||
46 | /** |
||
47 | * Constructs and initialize a iDEAL basic item |
||
48 | */ |
||
49 | 3 | public function __construct( $number, $description, $quantity, $price ) { |
|
50 | 3 | $this->number = $number; |
|
51 | 3 | $this->description = $description; |
|
52 | 3 | $this->quantity = $quantity; |
|
53 | 3 | $this->price = $price; |
|
54 | 3 | } |
|
55 | |||
56 | /** |
||
57 | * Get the number / identifier of this item |
||
58 | * |
||
59 | * @return string |
||
60 | */ |
||
61 | 2 | public function get_number() { |
|
62 | 2 | return $this->number; |
|
63 | } |
||
64 | |||
65 | /** |
||
66 | * Get the description of this item |
||
67 | * |
||
68 | * @return string |
||
69 | */ |
||
70 | 2 | public function get_description() { |
|
72 | } |
||
73 | |||
74 | /** |
||
75 | * Get the quantity of this item |
||
76 | * |
||
77 | * @return int |
||
78 | */ |
||
79 | 2 | public function get_quantity() { |
|
80 | 2 | return $this->quantity; |
|
81 | } |
||
82 | |||
83 | /** |
||
84 | * Get the price of this item |
||
85 | * |
||
86 | * @return Money |
||
87 | */ |
||
88 | 2 | public function get_price() { |
|
90 | } |
||
91 | |||
92 | /** |
||
93 | * Get the amount |
||
94 | * |
||
95 | * @return float |
||
96 | */ |
||
97 | 3 | public function get_amount() { |
|
99 | } |
||
100 | } |
||
101 |