| Conditions | 4 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 65 | 5 | protected function getRequiredFields(string $buildType = self::BUILD_FOR_CREATE): array |
|
| 66 | { |
||
| 67 | switch ($buildType) { |
||
| 68 | 5 | case self::BUILD_FOR_CREATE: |
|
| 69 | 3 | return ['username', 'email', 'password']; |
|
| 70 | 2 | case self::BUILD_FOR_UPDATE: |
|
| 71 | 1 | return ['id']; |
|
| 72 | 1 | case self::BUILD_FOR_PATCH: |
|
| 73 | default: |
||
| 74 | 1 | return []; |
|
| 75 | } |
||
| 78 |