Issues (16)

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/Base/Customer.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
namespace MrPrompt\ShipmentCommon\Base;
3
4
/**
5
 *
6
 * @author Thiago Paes <[email protected]>
7
 */
8
class Customer extends Person
9
{
10
    /**
11
     * @var int
12
     */
13
    private $code;
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...
14
15
    /**
16
     * @var int
17
     */
18
    private $identityNumber;
19
20
    /**
21
     * @var bool
22
     */
23
    private $helpfulMaturity;
24
25
    /**
26
     * @var int
27
     */
28
    private $workingDays;
29
30
    /**
31
     * Constructor
32
     * 
33
     * @param int $code
34
     * @param int $identityNumber
35
     * @param bool $helpfulMaturity
36
     * @param int $workingDays
37
     */
38 15
    public function __construct(
39
        int $code = 0,
40
        int $identityNumber = 0,
41
        bool $helpfulMaturity = false,
42
        int $workingDays = 0
43
    ) {
44 15
        $this->code = $code;
45 15
        $this->identityNumber = $identityNumber;
46 15
        $this->helpfulMaturity = $helpfulMaturity;
47 15
        $this->workingDays = $workingDays;
48 15
    }
49
50
    /**
51
     * @return int
52
     */
53 1
    public function getCode(): int
54
    {
55 1
        return $this->code;
56
    }
57
58
    /**
59
     * @param int $code
60
     */
61 2
    public function setCode(int $code)
62
    {
63 2
        $this->code = $code;
64 2
    }
65
66
    /**
67
     * @return int
68
     */
69 1
    public function getIdentityNumber(): int
70
    {
71 1
        return $this->identityNumber;
72
    }
73
74
    /**
75
     * @param int $identityNumber
76
     */
77 1
    public function setIdentityNumber(int $identityNumber)
78
    {
79 1
        $this->identityNumber = $identityNumber;
80 1
    }
81
82
    /**
83
     * @return mixed
84
     */
85 1
    public function getHelpfulMaturity(): bool
86
    {
87 1
        return $this->helpfulMaturity;
88
    }
89
90
    /**
91
     * @param boolean $helpfulMaturity
92
     */
93 1
    public function setHelpfulMaturity(bool $helpfulMaturity = true)
94
    {
95 1
        $this->helpfulMaturity = $helpfulMaturity;
96 1
    }
97
98
    /**
99
     * @return int
100
     */
101 1
    public function getWorkingDays(): int
102
    {
103 1
        return $this->workingDays;
104
    }
105
106
    /**
107
     * @param int $workingDays
108
     */
109 1
    public function setWorkingDays(int $workingDays)
110
    {
111 1
        $this->workingDays = $workingDays;
112 1
    }
113
}
114