1 | <?php |
||
5 | class AssociatedEntityToWarm |
||
|
|||
6 | { |
||
7 | const TYPE_MANY_TO_ONE = 'many_to_one'; |
||
8 | const TYPE_ONE_TO_MANY = 'one_to_many'; |
||
9 | |||
10 | protected $type; |
||
11 | protected $inheritorEntity; |
||
12 | protected $inheritorPropertyName; |
||
13 | protected $entityId; |
||
14 | protected $mappedBy; |
||
15 | |||
16 | /** |
||
17 | * Constructor. |
||
18 | * |
||
19 | * @param null $type |
||
20 | * @param null $inheritorEntity |
||
21 | * @param null $inheritorPropertyName |
||
22 | * @param null $entityId |
||
23 | * @param null $mappedBy for OneToMany type only |
||
24 | */ |
||
25 | public function __construct( |
||
38 | |||
39 | public function getType() |
||
43 | |||
44 | /** |
||
45 | * @param null $type |
||
46 | * |
||
47 | * @return $this |
||
48 | */ |
||
49 | public function setType($type) |
||
55 | |||
56 | /** |
||
57 | * @return mixed |
||
58 | */ |
||
59 | public function getInheritorEntity() |
||
63 | |||
64 | /** |
||
65 | * @param mixed $inheritorEntity |
||
66 | * |
||
67 | * @return $this |
||
68 | */ |
||
69 | public function setInheritorEntity($inheritorEntity) |
||
75 | |||
76 | /** |
||
77 | * @return mixed |
||
78 | */ |
||
79 | public function getInheritorPropertyName() |
||
83 | |||
84 | /** |
||
85 | * @param mixed $inheritorPropertyName |
||
86 | * |
||
87 | * @return $this |
||
88 | */ |
||
89 | public function setInheritorPropertyName($inheritorPropertyName) |
||
95 | |||
96 | /** |
||
97 | * Get entity id for ManyToOne type. |
||
98 | * |
||
99 | * @return int |
||
100 | */ |
||
101 | public function getEntityId() |
||
105 | |||
106 | /** |
||
107 | * @param mixed $entityId |
||
108 | * |
||
109 | * @return $this |
||
110 | */ |
||
111 | public function setEntityId($entityId) |
||
117 | |||
118 | public function getMappedBy() |
||
122 | |||
123 | /** |
||
124 | * @param null $mappedBy |
||
125 | * |
||
126 | * @return $this |
||
127 | */ |
||
128 | public function setMappedBy($mappedBy) |
||
134 | } |
||
135 |