Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public static function create( |
||
10 | string $class, |
||
11 | string $association, |
||
12 | string $given, |
||
13 | string $expected |
||
14 | ) : self { |
||
15 | return new self(sprintf( |
||
16 | 'Found entity of type %s on association %s#%s, but expecting %s', |
||
17 | $given, |
||
18 | $class, |
||
19 | $association, |
||
20 | $expected |
||
21 | )); |
||
22 | } |
||
23 | } |
||
24 |