| @@ 38-99 (lines=62) @@ | ||
| 35 | ||
| 36 | namespace Fabiang\DoctrineDynamic\Configuration\Mapping; |
|
| 37 | ||
| 38 | class ManyToMany implements MappingConfig |
|
| 39 | { |
|
| 40 | /** |
|
| 41 | * @var string |
|
| 42 | */ |
|
| 43 | private $targetEntity; |
|
| 44 | ||
| 45 | /** |
|
| 46 | * @var string |
|
| 47 | */ |
|
| 48 | private $inversedBy; |
|
| 49 | ||
| 50 | /** |
|
| 51 | * @var string |
|
| 52 | */ |
|
| 53 | private $mappedBy; |
|
| 54 | ||
| 55 | /** |
|
| 56 | * @var JoinTable |
|
| 57 | */ |
|
| 58 | private $joinTable; |
|
| 59 | ||
| 60 | public function getTargetEntity() |
|
| 61 | { |
|
| 62 | return $this->targetEntity; |
|
| 63 | } |
|
| 64 | ||
| 65 | public function getInversedBy() |
|
| 66 | { |
|
| 67 | return $this->inversedBy; |
|
| 68 | } |
|
| 69 | ||
| 70 | public function getMappedBy() |
|
| 71 | { |
|
| 72 | return $this->mappedBy; |
|
| 73 | } |
|
| 74 | ||
| 75 | public function getJoinTable() |
|
| 76 | { |
|
| 77 | return $this->joinTable; |
|
| 78 | } |
|
| 79 | ||
| 80 | public function setTargetEntity($targetEntity) |
|
| 81 | { |
|
| 82 | $this->targetEntity = $targetEntity; |
|
| 83 | } |
|
| 84 | ||
| 85 | public function setInversedBy($inversedBy) |
|
| 86 | { |
|
| 87 | $this->inversedBy = $inversedBy; |
|
| 88 | } |
|
| 89 | ||
| 90 | public function setMappedBy($mappedBy) |
|
| 91 | { |
|
| 92 | $this->mappedBy = $mappedBy; |
|
| 93 | } |
|
| 94 | ||
| 95 | public function setJoinTable(JoinTable $joinTable) |
|
| 96 | { |
|
| 97 | $this->joinTable = $joinTable; |
|
| 98 | } |
|
| 99 | } |
|
| 100 | ||
| @@ 38-99 (lines=62) @@ | ||
| 35 | ||
| 36 | namespace Fabiang\DoctrineDynamic\Configuration\Mapping; |
|
| 37 | ||
| 38 | class OneToOne implements MappingConfig |
|
| 39 | { |
|
| 40 | /** |
|
| 41 | * @var string |
|
| 42 | */ |
|
| 43 | private $targetEntity; |
|
| 44 | ||
| 45 | /** |
|
| 46 | * @var string |
|
| 47 | */ |
|
| 48 | private $mappedBy; |
|
| 49 | ||
| 50 | /** |
|
| 51 | * @var string |
|
| 52 | */ |
|
| 53 | private $inversedBy; |
|
| 54 | ||
| 55 | /** |
|
| 56 | * @var JoinColumn |
|
| 57 | */ |
|
| 58 | private $joinColumn; |
|
| 59 | ||
| 60 | public function getTargetEntity() |
|
| 61 | { |
|
| 62 | return $this->targetEntity; |
|
| 63 | } |
|
| 64 | ||
| 65 | public function getMappedBy() |
|
| 66 | { |
|
| 67 | return $this->mappedBy; |
|
| 68 | } |
|
| 69 | ||
| 70 | public function getInversedBy() |
|
| 71 | { |
|
| 72 | return $this->inversedBy; |
|
| 73 | } |
|
| 74 | ||
| 75 | public function getJoinColumn() |
|
| 76 | { |
|
| 77 | return $this->joinColumn; |
|
| 78 | } |
|
| 79 | ||
| 80 | public function setTargetEntity($targetEntity) |
|
| 81 | { |
|
| 82 | $this->targetEntity = $targetEntity; |
|
| 83 | } |
|
| 84 | ||
| 85 | public function setMappedBy($mappedBy) |
|
| 86 | { |
|
| 87 | $this->mappedBy = $mappedBy; |
|
| 88 | } |
|
| 89 | ||
| 90 | public function setInversedBy($inversedBy) |
|
| 91 | { |
|
| 92 | $this->inversedBy = $inversedBy; |
|
| 93 | } |
|
| 94 | ||
| 95 | public function setJoinColumn(JoinColumn $joinColumn) |
|
| 96 | { |
|
| 97 | $this->joinColumn = $joinColumn; |
|
| 98 | } |
|
| 99 | } |
|
| 100 | ||