| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php defined('SYSPATH') OR die('No direct script access.'); |
||
| 15 | 2 | function __construct(Model_Brand_Purchase_Shipping $brand_purchase_shipping, array $shipping_methods, array $purchase_items) |
|
|
|
|||
| 16 | { |
||
| 17 | 2 | Array_Util::validate_instance_of($shipping_methods, 'Model_Shipping_Method'); |
|
| 18 | 2 | Array_Util::validate_instance_of($purchase_items, 'Model_Purchase_Item'); |
|
| 19 | |||
| 20 | 2 | $this->shipping_methods = $shipping_methods; |
|
| 21 | 2 | $this->brand_purchase_shipping = $brand_purchase_shipping; |
|
| 22 | 2 | $this->purchase_items = $purchase_items; |
|
| 23 | 2 | } |
|
| 24 | |||
| 41 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.