Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
52 | 20 | public function query(): Query |
|
53 | { |
||
54 | 20 | if (! $this instanceof EntityRepository) { |
|
55 | 4 | $error = 'Could not use %s under non-repository class, but %s given'; |
|
56 | 4 | throw new \LogicException(\sprintf($error, Hydrogen::class, static::class)); |
|
57 | } |
||
58 | |||
59 | 16 | return Query::new()->from($this); |
|
60 | } |
||
61 | |||
77 |