| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 26 | public function getAnnotation(string $name, $class, string $method = null) { |
||
| 27 | if(!$this->isAvailable()) { |
||
| 28 | return null; |
||
| 29 | } |
||
| 30 | $attributes = $this->getReflection($class, $method)->getAttributes($this->getClassName($name)); |
||
| 31 | if(count($attributes) === 0) { |
||
| 32 | return null; |
||
| 33 | } |
||
| 34 | return $attributes[0]->getArguments()[0] ?? null; |
||
| 35 | } |
||
| 59 | ?> |