| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | 7 | protected function getRequiredProperties(): array |
|
| 45 | { |
||
| 46 | 7 | $properties = []; |
|
| 47 | |||
| 48 | 7 | foreach ((new ReflectionClass(static::class))->getProperties(ReflectionProperty::IS_PUBLIC) as $reflection) { |
|
| 49 | 7 | if ($reflection->hasDefaultValue()) { |
|
| 50 | 7 | continue; |
|
| 51 | } |
||
| 52 | 5 | $properties[] = $reflection->getName(); |
|
| 53 | } |
||
| 54 | |||
| 55 | 7 | return $properties; |
|
| 56 | } |
||
| 58 |