| 1 | <?php |
||
| 5 | class Parcel extends Model |
||
| 6 | { |
||
| 7 | public $box_type; |
||
| 8 | public $dimension; |
||
| 9 | public $items = []; |
||
| 10 | public $description; |
||
| 11 | public $weight; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param string $value |
||
| 15 | * |
||
| 16 | * @return $this |
||
| 17 | */ |
||
| 18 | public function box_type($value) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param Dimension $dimension |
||
| 27 | * |
||
| 28 | * @return $this |
||
| 29 | */ |
||
| 30 | public function dimension(Dimension $dimension) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param Item $item |
||
| 39 | * |
||
| 40 | * @return $this |
||
| 41 | */ |
||
| 42 | public function items(Item $item) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param $value |
||
| 51 | * |
||
| 52 | * @return $this |
||
| 53 | */ |
||
| 54 | public function description($value) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @param Weight $weight |
||
| 63 | * |
||
| 64 | * @return $this |
||
| 65 | */ |
||
| 66 | public function weight(Weight $weight) |
||
| 72 | } |
||
| 73 |