| 1 | <?php |
||
| 16 | class CartSubItem |
||
| 17 | { |
||
| 18 | use CartOptionsMagicMethodsTrait; |
||
| 19 | |||
| 20 | const ITEMS = 'items'; |
||
| 21 | |||
| 22 | public $locale; |
||
| 23 | public $internationalFormat; |
||
| 24 | |||
| 25 | private $itemHash; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param $options |
||
| 29 | */ |
||
| 30 | public function __construct($options) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Gets the hash for the item |
||
| 43 | * |
||
| 44 | * @return mixed |
||
| 45 | */ |
||
| 46 | public function getHash() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Gets the formatted price |
||
| 53 | * |
||
| 54 | * @param bool|true $format |
||
| 55 | * @param bool $taxedItemsOnly |
||
| 56 | * |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function price($format = true, $taxedItemsOnly = true) |
||
| 74 | } |
||
| 75 |