Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
22 | 3 | final public function matchOne($specification) |
|
23 | { |
||
24 | 3 | $result = $this->qbForSpecification($specification) |
|
|
|||
25 | 3 | ->setMaxResults(1) |
|
26 | 3 | ->execute() |
|
27 | 3 | ->fetch() |
|
28 | ; |
||
29 | |||
30 | 3 | if (!$result) { |
|
31 | 1 | throw new NotFound(\sprintf('Object from "%s" table not found for given specification.', static::tableName())); |
|
32 | } |
||
33 | |||
34 | 2 | return static::createObject($result); |
|
35 | } |
||
57 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.