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