Issues (20)

Security Analysis    no request data  

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

src/Database/ForeignKey.php (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

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
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected '?'
Loading history...
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