| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | final class AnnotatedProperty |
||
| 18 | { |
||
| 19 | /** @var \ReflectionProperty */ |
||
| 20 | private $property; |
||
| 21 | |||
| 22 | /** @var mixed */ |
||
| 23 | private $annotation; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param mixed $annotation |
||
| 27 | */ |
||
| 28 | public function __construct(\ReflectionProperty $property, $annotation) |
||
| 29 | { |
||
| 30 | $this->property = $property; |
||
| 31 | $this->annotation = $annotation; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getClass(): \ReflectionClass |
||
| 35 | { |
||
| 36 | return $this->property->getDeclaringClass(); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getProperty(): \ReflectionProperty |
||
| 40 | { |
||
| 41 | return $this->property; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return mixed |
||
| 46 | */ |
||
| 47 | public function getAnnotation() |
||
| 50 | } |
||
| 51 | } |
||
| 52 |