| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 10 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 33 | public function apply($mapper, $target, $result, ...$args) | ||
| 34 |     { | ||
| 35 |         foreach ($this->list as $behaviour) { | ||
| 36 | $method = 'on' . Str::className($target); | ||
| 37 |             if (method_exists($behaviour, $method)) { | ||
| 38 |                 $result = $behaviour->{$method}($mapper, $result, ...$args); | ||
| 39 | } | ||
| 40 | } | ||
| 41 | |||
| 42 | return $result; | ||
| 43 | } | ||
| 45 |