| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function rules(): array |
||
| 17 | { |
||
| 18 | return [ |
||
| 19 | 'invoice_id' => ['required', 'exists:invoices,id'], |
||
| 20 | 'name' => ['required', 'string', 'max:120'], |
||
| 21 | 'tax_id' => ['required', 'string', 'max:20'], |
||
| 22 | 'country' => ['nullable', 'string', 'size:2'], |
||
| 23 | 'address' => ['nullable', 'string', 'max:255'], |
||
| 24 | 'email' => ['nullable', 'email', 'max:120'], |
||
| 25 | 'phone' => ['nullable', 'string', 'max:30'], |
||
| 26 | 'type' => ['nullable', 'string', 'max:10'], |
||
| 27 | ]; |
||
| 29 | } |