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