| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | class ReflectionPropertyGetter implements GetterInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var ReflectionProperty |
||
| 14 | */ |
||
| 15 | private $property; |
||
| 16 | |||
| 17 | public function __construct(ReflectionProperty $property) |
||
| 18 | { |
||
| 19 | $this->property = $property; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getName(): string |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getValue($object) |
||
| 28 | { |
||
| 29 | return $this->property->getValue($object); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getPriority(): int |
||
| 35 | } |
||
| 36 | |||
| 37 | public function toType(): ?Type |
||
| 42 |