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