| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | protected static function addCallbacks(Name &$name, $strategy) |
||
| 49 | { |
||
| 50 | $name->setModel( |
||
| 51 | function () use ($name, $strategy) { |
||
| 52 | return $strategy->to('model', $name); |
||
| 53 | } |
||
| 54 | ); |
||
| 55 | |||
| 56 | $name->setController( |
||
| 57 | function () use ($name, $strategy) { |
||
| 58 | return $strategy->to('controller', $name); |
||
| 59 | } |
||
| 63 |