| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | abstract class AbstractResourceRuleSet implements ResourceRuleSetContract |
||
| 9 | { |
||
| 10 | public function rules() : array |
||
| 11 | { |
||
| 12 | return $this->provideRules(); |
||
| 13 | } |
||
| 14 | |||
| 15 | public function creationRules() : array |
||
| 16 | { |
||
| 17 | return array_merge_recursive( |
||
| 18 | $this->provideRules(), |
||
| 19 | $this->provideCreationRules() |
||
| 20 | ); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function updateRules() : array |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | |||
| 31 | abstract protected function provideRules() : array; |
||
| 32 | |||
| 33 | abstract protected function provideCreationRules() : array; |
||
| 34 | |||
| 35 | abstract protected function provideUpdateRules() : array; |
||
| 36 | } |
||
| 37 |