Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
42 | public function value(array $data, $owner = null) |
||
43 | { |
||
44 | try { |
||
45 | $objects = $this->itemsFromArray($data); |
||
46 | } catch (Throwable $exception) { |
||
47 | throw RelationMappingFailure::encountered($this, $exception); |
||
48 | } |
||
49 | try { |
||
50 | return $this->collection->from($objects); |
||
51 | } catch (Throwable $exception) { |
||
52 | throw CollectionMappingFailure::encountered($this, $exception); |
||
53 | } |
||
70 |