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