| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class MyEntity1 |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @ORM\Id |
||
| 17 | * @ORM\OneToOne(targetEntity=MyEntity2::class) |
||
| 18 | * @ORM\JoinColumn(name="entity2_id", referencedColumnName="id", nullable=false) |
||
| 19 | */ |
||
| 20 | private $entity2; |
||
| 21 | |||
| 22 | public function __construct(MyEntity2 $myEntity2) |
||
| 23 | { |
||
| 24 | $this->entity2 = $myEntity2; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function setMyEntity2(MyEntity2 $myEntity2) |
||
| 28 | { |
||
| 29 | $this->entity2 = $myEntity2; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getMyEntity2() |
||
| 35 | } |
||
| 36 | } |
||
| 37 | |||
| 76 |