| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 79 | private function guardAgainstInvalidAnnotation($annotation, $task) |
||
| 80 | { |
||
| 81 | if (!is_a($annotation, self::ANNOTATION_CLASS)) { |
||
| 82 | throw new \InvalidArgumentException( |
||
| 83 | sprintf( |
||
| 84 | 'class %s is missing the Schedule annotation %s', |
||
| 85 | get_class($task), |
||
| 86 | self::ANNOTATION_CLASS |
||
| 87 | ) |
||
| 88 | ); |
||
| 89 | } |
||
| 90 | } |
||
| 91 | } |
||
| 92 |