Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
10 | public function rules() |
||
11 | { |
||
12 | return new Assert\Collection([ |
||
13 | 'profile' => new Assert\Collection([ |
||
14 | 'first_name' => new Assert\Length(['min' => 2, 'max' => 50]), |
||
15 | 'last_name' => new Assert\Length(['min' => 2, 'max' => 50]), |
||
16 | 'birth_date' => new Assert\Date(), |
||
17 | 'about' => new Assert\Length(['max' => 255]), |
||
18 | 'public_email' => new Assert\Email(), |
||
19 | ]), |
||
20 | ]); |
||
21 | } |
||
22 | } |
||
23 |