| 1 | <?php |
||
| 23 | class Item extends Collection |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * The Eloquent model a cart is associated with. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $model; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Magic accessor. |
||
| 34 | * |
||
| 35 | * @param string $property property name |
||
| 36 | * |
||
| 37 | * @return mixed |
||
| 38 | */ |
||
| 39 | public function __get($property) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Return the raw ID of item. |
||
| 66 | * |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | public function rawId() |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @return string |
||
| 76 | */ |
||
| 77 | public function getKey() |
||
| 81 | } |
||
| 82 |