Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
10 | 4 | public function rules() |
|
11 | { |
||
12 | 4 | return new Assert\Collection([ |
|
13 | 4 | 'genre' => new Assert\Collection([ |
|
14 | 4 | 'translations' => $this->eachItemValidation([ |
|
15 | 4 | 'name' => new Assert\Length(['min' => 3, 'max' => 50]), |
|
16 | 4 | 'locale' => new Assert\Locale(), |
|
17 | ]), |
||
18 | ]), |
||
19 | ]); |
||
20 | } |
||
21 | } |
||
22 |