| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 31 | 
| Code Lines | 19 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 47 | public function rules()  | 
            ||
| 48 |     { | 
            ||
| 49 | return [  | 
            ||
| 50 | [  | 
            ||
| 51 | ['id'],  | 
            ||
| 52 | 'required',  | 
            ||
| 53 | ],  | 
            ||
| 54 | [  | 
            ||
| 55 | ['id'],  | 
            ||
| 56 | 'number',  | 
            ||
| 57 | 'integerOnly' => true,  | 
            ||
| 58 | 'min' => 0,  | 
            ||
| 59 | 'max' => SimpleOffer::NUMBER_LIMIT,  | 
            ||
| 60 | ],  | 
            ||
| 61 | [  | 
            ||
| 62 | ['instock'],  | 
            ||
| 63 | 'number',  | 
            ||
| 64 | 'integerOnly' => true,  | 
            ||
| 65 | 'min' => 0,  | 
            ||
| 66 | 'max' => SimpleOffer::NUMBER_LIMIT,  | 
            ||
| 67 | ],  | 
            ||
| 68 | [  | 
            ||
| 69 | ['booking'],  | 
            ||
| 70 | 'in',  | 
            ||
| 71 | 'range' => [  | 
            ||
| 72 | 'true',  | 
            ||
| 73 | 'false'  | 
            ||
| 74 | ]  | 
            ||
| 75 | ],  | 
            ||
| 76 | ];  | 
            ||
| 77 | }  | 
            ||
| 78 | |||
| 103 |