| Conditions | 1 |
| Paths | 1 |
| Total Lines | 29 |
| Code Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function createValidator(): IValidator |
||
| 16 | { |
||
| 17 | $validator = parent::createValidator(); |
||
| 18 | |||
| 19 | $validator |
||
| 20 | ->field('id') |
||
| 21 | ->forbidden(); |
||
| 22 | |||
| 23 | $validator |
||
| 24 | ->field('description') |
||
| 25 | ->required(); |
||
| 26 | |||
| 27 | $validator |
||
| 28 | ->field('category_id') |
||
| 29 | ->uuid(); |
||
| 30 | |||
| 31 | $validator |
||
| 32 | ->field('data') |
||
| 33 | ->base64(); |
||
| 34 | |||
| 35 | $validator |
||
| 36 | ->field('name') |
||
| 37 | ->required(); |
||
| 38 | |||
| 39 | $validator |
||
| 40 | ->field('mime') |
||
| 41 | ->required(); |
||
| 42 | |||
| 43 | return $validator; |
||
| 44 | } |
||
| 46 |