Issues (6)

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/Model/Offer/OfferEventTicket.php (1 issue)

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
/*
4
 * This file is part of the Bukashk0zzzYmlGenerator
5
 *
6
 * (c) Denis Golubovskiy <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Bukashk0zzz\YmlGenerator\Model\Offer;
13
14
/**
15
 * Class OfferEventTicket
16
 */
17
class OfferEventTicket extends AbstractOffer
18
{
19
    /**
20
     * @var string
21
     */
22
    private $name;
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
23
24
    /**
25
     * @var string
26
     */
27
    private $place;
28
29
    /**
30
     * @var string
31
     */
32
    private $date;
33
34
    /**
35
     * @var int
36
     */
37
    private $premiere;
38
39
    /**
40
     * @var int
41
     */
42
    private $kids;
43
44
    /**
45
     * @return string
46
     */
47
    public function getType()
48
    {
49
        return 'event-ticket';
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getName()
56
    {
57
        return $this->name;
58
    }
59
60
    /**
61
     * @param string $name
62
     *
63
     * @return $this
64
     */
65
    public function setName($name)
66
    {
67
        $this->name = $name;
68
69
        return $this;
70
    }
71
72
    /**
73
     * @return string
74
     */
75
    public function getPlace()
76
    {
77
        return $this->place;
78
    }
79
80
    /**
81
     * @param string $place
82
     *
83
     * @return $this
84
     */
85
    public function setPlace($place)
86
    {
87
        $this->place = $place;
88
89
        return $this;
90
    }
91
92
    /**
93
     * @return string
94
     */
95
    public function getDate()
96
    {
97
        return $this->date;
98
    }
99
100
    /**
101
     * @param string $date
102
     *
103
     * @return $this
104
     */
105
    public function setDate($date)
106
    {
107
        $this->date = $date;
108
109
        return $this;
110
    }
111
112
    /**
113
     * @return int
114
     */
115
    public function getPremiere()
116
    {
117
        return $this->premiere;
118
    }
119
120
    /**
121
     * @param int $premiere
122
     *
123
     * @return $this
124
     */
125
    public function setPremiere($premiere)
126
    {
127
        $this->premiere = $premiere;
128
129
        return $this;
130
    }
131
132
    /**
133
     * @return int
134
     */
135
    public function getKids()
136
    {
137
        return $this->kids;
138
    }
139
140
    /**
141
     * @param int $kids
142
     *
143
     * @return $this
144
     */
145
    public function setKids($kids)
146
    {
147
        $this->kids = $kids;
148
149
        return $this;
150
    }
151
152
    /**
153
     * @return array
154
     */
155
    protected function getOptions()
156
    {
157
        return [
158
            'name' => $this->getName(),
159
            'place' => $this->getPlace(),
160
            'date' => $this->getDate(),
161
            'is_premiere' => $this->getPremiere(),
162
            'is_kids' => $this->getKids(),
163
        ];
164
    }
165
}
166