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