| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 52 | public function setValidationRules(): void |
||
| 53 | { |
||
| 54 | $this->addRules('code', [ |
||
| 55 | new NotEmpty(), |
||
| 56 | new MinLength(2), |
||
| 57 | new MaxLength(20), |
||
| 58 | new AlphaNumericDash(), |
||
| 59 | ]); |
||
| 60 | |||
| 61 | $this->addRules('description', [ |
||
| 62 | new NotEmpty(), |
||
| 63 | new MinLength(2), |
||
| 64 | new MaxLength(100), |
||
| 65 | ]); |
||
| 66 | |||
| 67 | $this->addRules('depend', [ |
||
| 68 | new MinLength(2), |
||
| 69 | new MaxLength(20), |
||
| 70 | ]); |
||
| 73 |