| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public static function fromClassAndAssociation(string $class, string $associationName) : self |
||
| 14 | { |
||
| 15 | return new self(sprintf( |
||
| 16 | 'Cannot match on %s::%s with a non-object value. Matching objects by id is ' . |
||
| 17 | 'not compatible with matching on an in-memory collection, which compares objects by reference.', |
||
| 18 | $class, |
||
| 19 | $associationName |
||
| 20 | )); |
||
| 23 |