| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 3 | public static function fromClassNameAndIdentifier($className, array $id) |
|
| 23 | { |
||
| 24 | 3 | $ids = []; |
|
| 25 | |||
| 26 | 3 | foreach ($id as $key => $value) { |
|
| 27 | 3 | $ids[] = $key . '(' . $value . ')'; |
|
| 28 | } |
||
| 29 | |||
| 30 | 3 | return new self( |
|
| 31 | 3 | 'Entity of type \'' . $className . '\'' . ($ids ? ' for IDs ' . implode(', ', $ids) : '') . ' was not found' |
|
| 32 | ); |
||
| 35 |