1 | <?php |
||
5 | class Invoice extends Model |
||
6 | { |
||
7 | public $date; |
||
8 | public $number; |
||
9 | public $type; |
||
10 | public $number_of_copies = 1; |
||
11 | |||
12 | public function __construct() |
||
16 | |||
17 | /** |
||
18 | * @param string $value |
||
19 | * |
||
20 | * @return $this |
||
21 | */ |
||
22 | public function number($value) |
||
28 | |||
29 | /** |
||
30 | * @param string $value |
||
31 | * |
||
32 | * @return $this |
||
33 | */ |
||
34 | public function type($value) |
||
40 | |||
41 | /** |
||
42 | * @param int $value between 1 and 4 |
||
43 | * |
||
44 | * @throws \Exception |
||
45 | * |
||
46 | * @return $this |
||
47 | */ |
||
48 | public function number_of_copies($value) |
||
59 | } |
||
60 |