| Conditions | 1 |
| Paths | 1 |
| Total Lines | 42 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | protected function handleRules() |
||
| 45 | { |
||
| 46 | |||
| 47 | return [ |
||
| 48 | [ |
||
| 49 | [ |
||
| 50 | 'handle' |
||
| 51 | ], |
||
| 52 | HandleValidator::class, |
||
| 53 | 'reservedWords' => $this->reservedHandleWords |
||
| 54 | ], |
||
| 55 | [ |
||
| 56 | [ |
||
| 57 | 'handle' |
||
| 58 | ], |
||
| 59 | 'unique' |
||
| 60 | ], |
||
| 61 | [ |
||
| 62 | [ |
||
| 63 | 'handle' |
||
| 64 | ], |
||
| 65 | 'required' |
||
| 66 | ], |
||
| 67 | [ |
||
| 68 | [ |
||
| 69 | 'handle' |
||
| 70 | ], |
||
| 71 | 'string', |
||
| 72 | 'max' => $this->handleLength |
||
| 73 | ], |
||
| 74 | [ |
||
| 75 | [ |
||
| 76 | 'handle' |
||
| 77 | ], |
||
| 78 | 'safe', |
||
| 79 | 'on' => [ |
||
| 80 | RecordHelper::SCENARIO_DEFAULT |
||
| 81 | ] |
||
| 82 | ] |
||
| 83 | ]; |
||
| 84 | |||
| 85 | } |
||
| 86 | |||
| 88 |