| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3.0416 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 4 | final public static function getIterator(): Generator |
|
| 25 | { |
||
| 26 | 4 | $reflection = null; |
|
|
|
|||
| 27 | |||
| 28 | try { |
||
| 29 | 4 | $reflection = new ReflectionClass(static::class); |
|
| 30 | } catch (ReflectionException) { |
||
| 31 | // Do something. |
||
| 32 | } |
||
| 33 | |||
| 34 | 4 | if (null !== $reflection) { |
|
| 35 | 4 | yield from $reflection->getConstants(); |
|
| 36 | } |
||
| 84 |