| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public static function forClassAndIdentifier($class, $identifier) |
||
| 10 | { |
||
| 11 | if (null === $class) { |
||
| 12 | return new static(sprintf( |
||
| 13 | 'Could not find object with identifier "%s"', |
||
| 14 | $identifier |
||
| 15 | )); |
||
| 16 | } |
||
| 17 | |||
| 18 | return new static(sprintf( |
||
| 19 | 'Could not find object of class "%s" with identifier "%s"', |
||
| 20 | $class, $identifier |
||
| 21 | )); |
||
| 22 | } |
||
| 23 | } |
||
| 24 |