Total Complexity | 7 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | final class HasBackReference implements MapsProperty |
||
17 | { |
||
18 | private $name; |
||
19 | private $sourceHydrator; |
||
20 | |||
21 | private function __construct(string $name, ?Hydrates $source) |
||
22 | { |
||
23 | $this->name = $name; |
||
24 | $this->sourceHydrator = $source; |
||
25 | } |
||
26 | |||
27 | public static function inProperty(string $name, Hydrates $source = null) : self |
||
30 | } |
||
31 | |||
32 | /** @inheritdoc */ |
||
33 | public function name() : string |
||
36 | } |
||
37 | |||
38 | public function setSource(Hydrates $source) |
||
41 | } |
||
42 | |||
43 | /** @inheritdoc @return mixed|object */ |
||
44 | public function value(array $data, $owner = null) |
||
56 |