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 |
||
26 | 19 | public function getConfiguration($class): Timestamped |
|
27 | { |
||
28 | 19 | $timestamped = $this->getClassAnnotationConfiguration($class, Timestamped::class); |
|
29 | 19 | if (!$timestamped instanceof Timestamped) { |
|
30 | throw new \LogicException(sprintf('getClassAnnotationConfiguration should return the type %s', Timestamped::class)); |
||
31 | } |
||
32 | |||
33 | 19 | return $timestamped; |
|
34 | } |
||
36 |