| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | private function generateMethod(array $relation, string $stub) |
||
| 40 | { |
||
| 41 | return str_replace([ |
||
| 42 | '$class$', |
||
| 43 | '$method$', |
||
| 44 | '$type$', |
||
| 45 | '$target$', |
||
| 46 | '$keys$' |
||
| 47 | ], [ |
||
| 48 | $relation['type'], |
||
| 49 | $relation['method']['name'], |
||
| 50 | lcfirst($relation['type']), |
||
| 51 | $relation['target'], |
||
| 52 | $relation['keys'] ?? '', |
||
| 53 | ], File::get($stub)); |
||
| 54 | } |
||
| 55 | |||
| 74 |