| 1 | <?php  | 
            ||
| 5 | class Dimension extends Model  | 
            ||
| 6 | { | 
            ||
| 7 | public $width;  | 
            ||
| 8 | public $height;  | 
            ||
| 9 | public $depth;  | 
            ||
| 10 | public $unit;  | 
            ||
| 11 | |||
| 12 | public function __construct($width = null, $height = null, $depth = null, $unit = null)  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * @param $value  | 
            ||
| 24 | *  | 
            ||
| 25 | * @return $this  | 
            ||
| 26 | */  | 
            ||
| 27 | public function width($value)  | 
            ||
| 33 | |||
| 34 | /**  | 
            ||
| 35 | * @param $value  | 
            ||
| 36 | *  | 
            ||
| 37 | * @return $this  | 
            ||
| 38 | */  | 
            ||
| 39 | public function height($value)  | 
            ||
| 45 | |||
| 46 | /**  | 
            ||
| 47 | * @param $value  | 
            ||
| 48 | *  | 
            ||
| 49 | * @return $this  | 
            ||
| 50 | */  | 
            ||
| 51 | public function depth($value)  | 
            ||
| 57 | |||
| 58 | /**  | 
            ||
| 59 | * @param $value in or cm  | 
            ||
| 60 | *  | 
            ||
| 61 | * @throws \Exception  | 
            ||
| 62 | *  | 
            ||
| 63 | * @return $this  | 
            ||
| 64 | */  | 
            ||
| 65 | public function unit($value)  | 
            ||
| 76 | }  | 
            ||
| 77 |