| Total Complexity | 6 | 
| Total Lines | 37 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 16 | final class HasBackReference implements MapsProperty, ObservesHydration | ||
| 17 | { | ||
| 18 | private $name; | ||
| 19 | private $referenceTo; | ||
| 20 | |||
| 21 | private function __construct(string $name) | ||
| 22 |     { | ||
| 23 | $this->name = $name; | ||
| 24 | } | ||
| 25 | |||
| 26 | /** | ||
| 27 | * Create a new mapping that refers back to the "owning" object. | ||
| 28 | * | ||
| 29 | * @param string $name The name of both the property. | ||
| 30 | * @return self The mapping for the bidirectional relationship. | ||
| 31 | */ | ||
| 32 | public static function inProperty(string $name) : self | ||
| 35 | } | ||
| 36 | |||
| 37 | public function name() : string | ||
| 40 | } | ||
| 41 | |||
| 42 | public function hydrating($theInstance) : void | ||
| 45 | } | ||
| 46 | |||
| 47 | public function value(array $data, $owner = null) | ||
| 55 |