| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class HasOne implements MakesConnections |
||
| 12 | { |
||
| 13 | private $property; |
||
| 14 | |||
| 15 | private function __construct(string $property) |
||
| 16 | { |
||
| 17 | $this->property = $property; |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Makes a connector for a has-one type relationship. |
||
| 22 | * |
||
| 23 | * @param string $property The property to map. |
||
| 24 | * @return MakesConnections The relationship connector. |
||
| 25 | */ |
||
| 26 | public static function in(string $property): MakesConnections |
||
| 29 | } |
||
| 30 | |||
| 31 | /** @inheritdoc */ |
||
| 32 | public function load( |
||
| 46 | } |
||
| 47 | } |
||
| 48 |