Conditions | 2 |
Paths | 0 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
48 | public function fromArray(array $data) |
||
49 | { |
||
50 | try { |
||
51 | $this->object = $this->class->newInstanceWithoutConstructor(); |
||
52 | $this->properties->writeData($this->object, $this->setter, $data); |
||
53 | return $this->object; |
||
54 | } catch (UnmappableInput $exception) { |
||
55 | throw CouldNotMap::encountered($exception, $this->class); |
||
56 | } finally { |
||
57 | $this->object = null; |
||
58 | } |
||
66 |