Total Complexity | 3 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class PostRuleSet extends AbstractResourceRuleSet |
||
8 | { |
||
9 | protected function provideRules() : array |
||
10 | { |
||
11 | return [ |
||
12 | 'subject' => [ |
||
13 | 'string', |
||
14 | 'max:255', |
||
15 | ], |
||
16 | 'body' => [ |
||
17 | 'string', |
||
18 | 'max:1024', |
||
19 | ], |
||
20 | ]; |
||
21 | } |
||
22 | |||
23 | protected function provideCreationRules() : array |
||
31 | ], |
||
32 | ]; |
||
33 | } |
||
34 | |||
35 | protected function provideUpdateRules() : array |
||
46 |