| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.032 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | 19 | public function getConfiguration($class): Publishable |
|
| 29 | { |
||
| 30 | 19 | $publishable = $this->getClassAnnotationConfiguration($class, Publishable::class); |
|
| 31 | 19 | if (!$publishable instanceof Publishable) { |
|
| 32 | throw new \LogicException(sprintf('getClassAnnotationConfiguration should return the type %s', Publishable::class)); |
||
| 33 | } |
||
| 34 | |||
| 35 | 19 | return $publishable; |
|
| 36 | } |
||
| 38 |