Total Complexity | 6 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Coverage | 94.12% |
Changes | 0 |
1 | <?php |
||
19 | class Items implements IteratorAggregate { |
||
20 | /** |
||
21 | * The items |
||
22 | * |
||
23 | * @var array |
||
24 | */ |
||
25 | private $items; |
||
26 | |||
27 | /** |
||
28 | * Constructs and initialize a iDEAL basic object |
||
29 | */ |
||
30 | 3 | public function __construct() { |
|
32 | 3 | } |
|
33 | |||
34 | /** |
||
35 | * Get iterator |
||
36 | * |
||
37 | * @see IteratorAggregate::getIterator() |
||
38 | */ |
||
39 | // @codingStandardsIgnoreStart |
||
40 | // Function name "getIterator" is in camel caps format, try 'get_iterator' |
||
41 | 1 | public function getIterator() { |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * Add item |
||
48 | * |
||
49 | * @param Item $item Item. |
||
50 | */ |
||
51 | 2 | public function add_item( Item $item ) { |
|
53 | 2 | } |
|
54 | |||
55 | /** |
||
56 | * Calculate the total amount of all items |
||
57 | */ |
||
58 | 2 | public function get_amount() { |
|
78 |