| Total Complexity | 6 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 8 | final class ObservedRelationMapping implements Mapping, HydrationObserver |
||
| 9 | { |
||
| 10 | /** @var string */ |
||
| 11 | private $name; |
||
| 12 | /** @var null|object */ |
||
| 13 | private $referenceTo; |
||
| 14 | |||
| 15 | private function __construct(string $name) |
||
| 16 | { |
||
| 17 | $this->name = $name; |
||
| 18 | } |
||
| 19 | |||
| 20 | public static function inProperty(string $name): self |
||
| 21 | { |
||
| 22 | return new self($name); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function name(): string |
||
| 26 | { |
||
| 27 | return $this->name; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function hydrating(object $theInstance, array $theData): void |
||
| 33 | } |
||
| 34 | |||
| 35 | public function value(array $data, $owner = null) |
||
| 41 | } |
||
| 42 | } |