| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 63.64% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class PropertyAnnotationValidationContext implements ValidationContext, BinaryFunction |
||
| 16 | { |
||
| 17 | /** @var ContainerInterface */ |
||
| 18 | public $provider; |
||
| 19 | /** @var \ReflectionClass */ |
||
| 20 | public $cls; |
||
| 21 | /** @var \ReflectionProperty */ |
||
| 22 | public $property; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param ContainerInterface $provider |
||
| 26 | * @param \ReflectionClass $cls |
||
| 27 | * @param \ReflectionProperty $property |
||
| 28 | */ |
||
| 29 | 36 | public function __construct(ContainerInterface $provider, \ReflectionClass $cls, \ReflectionProperty $property) |
|
| 30 | { |
||
| 31 | 36 | $this->provider = $provider; |
|
| 32 | 36 | $this->cls = $cls; |
|
| 33 | 36 | $this->property = $property; |
|
| 34 | 36 | } |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @return ContainerInterface |
||
| 38 | */ |
||
| 39 | public function getProvider() |
||
| 40 | { |
||
| 41 | return $this->provider; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function getAnnotationLocation() |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param SlumberMarker $marker |
||
| 54 | * @param int $idx |
||
| 55 | * |
||
| 56 | * @return void |
||
| 57 | */ |
||
| 58 | 36 | public function __invoke($marker, $idx) |
|
| 61 | 36 | } |
|
| 62 | } |
||
| 63 |