| Conditions | 2 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | private function __construct( |
||
| 27 | ReflectionClass $reflector, |
||
| 28 | MapsProperties $mapped, |
||
| 29 | Closure $setter = null |
||
| 30 | ) { |
||
| 31 | $this->class = $reflector; |
||
| 32 | $this->properties = $mapped; |
||
| 33 | $this->setter = $setter ?: function (string $attribute, $value) |
||
| 34 | { |
||
| 35 | $this->$attribute = $value; |
||
| 36 | }; |
||
| 66 |