| Conditions | 3 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| 1 | <?php |
||
| 57 | 5 | public function reverseCompile($projection) |
|
| 58 | { |
||
| 59 | 5 | $name = ($this->toName) ? $this->toName : $this->name; |
|
| 60 | 5 | $value = $projection[$name]; |
|
| 61 | |||
| 62 | 5 | if (is_callable($this->setterCallable)) { |
|
| 63 | 5 | $value = call_user_func($this->setterCallable, $this->object, $this->name, $value); |
|
| 64 | 5 | } |
|
| 65 | |||
| 66 | 5 | return [$this->name => $value]; |
|
| 67 | } |
||
| 68 | } |
||
| 69 |