Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public static function fromClassNameAndIdentifier($className, $id) |
||
31 | { |
||
32 | $ids = []; |
||
33 | |||
34 | foreach ($id as $key => $value) { |
||
35 | $ids[] = $key . '(' . $value . ')'; |
||
36 | } |
||
37 | |||
38 | return new self( |
||
39 | 'Document of type \'' . $className . '\' for ID ' . $id . ' was not found' |
||
40 | ); |
||
41 | } |
||
42 | } |
||
43 |