Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
57 | 3 | private function getReflectionProperty(string $class): \ReflectionProperty |
|
58 | { |
||
59 | try { |
||
60 | 3 | return new \ReflectionProperty($class, $this->property); |
|
61 | 1 | } catch (\ReflectionException $e) { |
|
62 | 1 | throw SerializerLogicException::createMissingProperty($class, $this->property); |
|
63 | } |
||
64 | } |
||
65 | } |
||
66 |