| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 63 | private function getAnnotation($taskId) |
||
| 64 | { |
||
| 65 | $task = $this->container->get($taskId); |
||
| 66 | |||
| 67 | $reflectionObject = new \ReflectionObject($task); |
||
| 68 | $annotation = $this->reader->getClassAnnotation($reflectionObject, self::ANNOTATION_CLASS); |
||
| 69 | |||
| 70 | $this->guardAgainstInvalidAnnotation($annotation, $task); |
||
| 71 | |||
| 72 | return $annotation; |
||
| 73 | } |
||
| 74 | |||
| 92 |