This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Taisiya\PropelBundle\Database; |
||
4 | |||
5 | abstract class ForeignKey implements ForeignKeyInterface |
||
6 | { |
||
7 | const ON_UPDATE_DELETE_CASCADE = 'cascade'; |
||
8 | const ON_UPDATE_DELETE_SETNULL = 'setnull'; |
||
9 | const ON_UPDATE_DELETE_RESTRICT = 'restrict'; |
||
10 | const ON_UPDATE_DELETE_NONE = 'none'; |
||
11 | |||
12 | /** |
||
13 | * @var Table |
||
14 | */ |
||
15 | private $foreignTable; |
||
16 | |||
17 | /** |
||
18 | * @var ForeignKeyReference |
||
19 | */ |
||
20 | private $foreignKeyReference; |
||
21 | |||
22 | /** |
||
23 | * The other table SQL schema. |
||
24 | * |
||
25 | * @var string|null |
||
26 | */ |
||
27 | private $foreignSchema = null; |
||
28 | |||
29 | /** |
||
30 | * Name for this foreign key. |
||
31 | * |
||
32 | * @var string|null |
||
33 | */ |
||
34 | private $name = null; |
||
35 | |||
36 | /** |
||
37 | * Name for the foreign object in methods generated in this class. |
||
38 | * |
||
39 | * @var string|null |
||
40 | */ |
||
41 | private $phpName = null; |
||
42 | |||
43 | /** |
||
44 | * Name for this object in methods generated in the foreign class. |
||
45 | * |
||
46 | * @var string|null |
||
47 | */ |
||
48 | private $refPhpName = null; |
||
49 | |||
50 | /** |
||
51 | * @var string|null |
||
52 | */ |
||
53 | private $onDelete = null; |
||
54 | |||
55 | /** |
||
56 | * @var string|null |
||
57 | */ |
||
58 | private $onUpdate = null; |
||
59 | |||
60 | /** |
||
61 | * Instructs Propel not to generate DDL SQL for the specified foreign key. |
||
62 | * This can be used to support relationships in the model without an actual foreign key. |
||
63 | * |
||
64 | * @var bool|null |
||
65 | */ |
||
66 | private $skipSql = null; |
||
67 | |||
68 | /** |
||
69 | * This affects the default join type used in the generated joinXXX() methods |
||
70 | * in the model query class. Propel uses an INNER JOIN for foreign keys attached |
||
71 | * to a required column, and a LEFT JOIN for foreign keys attached |
||
72 | * to a non-required column, but you can override this in the foreign key element. |
||
73 | * |
||
74 | * @var string|null |
||
75 | */ |
||
76 | private $defaultJoin = null; |
||
77 | |||
78 | /** |
||
79 | * ForeignKey constructor. |
||
80 | * |
||
81 | * @param Table $foreignTable |
||
82 | * @param ForeignKeyReference $foreignKeyReference |
||
83 | */ |
||
84 | final public function __construct(Table $foreignTable, ForeignKeyReference $foreignKeyReference) |
||
85 | { |
||
86 | $this->foreignTable = $foreignTable; |
||
87 | $this->foreignKeyReference = $foreignKeyReference; |
||
88 | } |
||
89 | |||
90 | /** |
||
91 | * @return Table |
||
92 | */ |
||
93 | final public function getForeignTable(): Table |
||
94 | { |
||
95 | return $this->foreignTable; |
||
96 | } |
||
97 | |||
98 | /** |
||
99 | * @return ForeignKeyReference |
||
100 | */ |
||
101 | final public function getForeignKeyReference(): ForeignKeyReference |
||
102 | { |
||
103 | return $this->foreignKeyReference; |
||
104 | } |
||
105 | |||
106 | /** |
||
107 | * @return null|string |
||
108 | */ |
||
109 | final public function getForeignSchema(): ? string |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
110 | { |
||
111 | return $this->foreignSchema; |
||
112 | } |
||
113 | |||
114 | /** |
||
115 | * @param null|string $foreignSchema |
||
116 | * |
||
117 | * @return ForeignKey |
||
118 | */ |
||
119 | final public function setForeignSchema($foreignSchema) |
||
120 | { |
||
121 | $this->foreignSchema = $foreignSchema; |
||
122 | |||
123 | return $this; |
||
124 | } |
||
125 | |||
126 | /** |
||
127 | * @param null|string $name |
||
128 | * |
||
129 | * @return ForeignKey |
||
130 | */ |
||
131 | final public function setName($name) |
||
132 | { |
||
133 | $this->name = $name; |
||
134 | |||
135 | return $this; |
||
136 | } |
||
137 | |||
138 | /** |
||
139 | * @return null|string |
||
140 | */ |
||
141 | final public function getPhpName() |
||
142 | { |
||
143 | return $this->phpName; |
||
144 | } |
||
145 | |||
146 | /** |
||
147 | * @param null|string $phpName |
||
148 | * |
||
149 | * @return ForeignKey |
||
150 | */ |
||
151 | final public function setPhpName($phpName) |
||
152 | { |
||
153 | $this->phpName = $phpName; |
||
154 | |||
155 | return $this; |
||
156 | } |
||
157 | |||
158 | /** |
||
159 | * @return null|string |
||
160 | */ |
||
161 | final public function getRefPhpName() |
||
162 | { |
||
163 | return $this->refPhpName; |
||
164 | } |
||
165 | |||
166 | /** |
||
167 | * @param null|string $refPhpName |
||
168 | * |
||
169 | * @return ForeignKey |
||
170 | */ |
||
171 | final public function setRefPhpName($refPhpName) |
||
172 | { |
||
173 | $this->refPhpName = $refPhpName; |
||
174 | |||
175 | return $this; |
||
176 | } |
||
177 | |||
178 | /** |
||
179 | * @return null|string |
||
180 | */ |
||
181 | final public function getOnDelete() |
||
182 | { |
||
183 | return $this->onDelete; |
||
184 | } |
||
185 | |||
186 | /** |
||
187 | * @param null|string $onDelete |
||
188 | * |
||
189 | * @return ForeignKey |
||
190 | */ |
||
191 | final public function setOnDelete($onDelete) |
||
192 | { |
||
193 | $this->onDelete = $onDelete; |
||
194 | |||
195 | return $this; |
||
196 | } |
||
197 | |||
198 | /** |
||
199 | * @return null|string |
||
200 | */ |
||
201 | final public function getOnUpdate() |
||
202 | { |
||
203 | return $this->onUpdate; |
||
204 | } |
||
205 | |||
206 | /** |
||
207 | * @param null|string $onUpdate |
||
208 | * |
||
209 | * @return ForeignKey |
||
210 | */ |
||
211 | final public function setOnUpdate($onUpdate) |
||
212 | { |
||
213 | $this->onUpdate = $onUpdate; |
||
214 | |||
215 | return $this; |
||
216 | } |
||
217 | |||
218 | /** |
||
219 | * @return bool|null |
||
220 | */ |
||
221 | final public function getSkipSql() |
||
222 | { |
||
223 | return $this->skipSql; |
||
224 | } |
||
225 | |||
226 | /** |
||
227 | * @param bool|null $skipSql |
||
228 | * |
||
229 | * @return ForeignKey |
||
230 | */ |
||
231 | final public function setSkipSql($skipSql) |
||
232 | { |
||
233 | $this->skipSql = $skipSql; |
||
234 | |||
235 | return $this; |
||
236 | } |
||
237 | |||
238 | /** |
||
239 | * @return null|string |
||
240 | */ |
||
241 | final public function getDefaultJoin() |
||
242 | { |
||
243 | return $this->defaultJoin; |
||
244 | } |
||
245 | |||
246 | /** |
||
247 | * @param null|string $defaultJoin |
||
248 | * |
||
249 | * @return ForeignKey |
||
250 | */ |
||
251 | final public function setDefaultJoin($defaultJoin) |
||
252 | { |
||
253 | $this->defaultJoin = $defaultJoin; |
||
254 | |||
255 | return $this; |
||
256 | } |
||
257 | } |
||
258 |