Issues (319)

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/Column/ColumnInterface.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
 * @company MTE Telecom, Ltd.
4
 * @author Roman Malashin <[email protected]>
5
 */
6
7
namespace Nnx\DataGrid\Column;
8
9
use Nnx\DataGrid\Column\Header\HeaderInterface;
10
use Nnx\DataGrid\Mutator\MutatorInterface;
11
use Traversable;
12
13
/**
14
 * Interface ColumnInterface
15
 * @package Nnx\DataGrid\Column
16
 */
17
interface ColumnInterface
18
{
19
    /**
20
     * Устанавливает имя колонки по которому в дальнейшем будут маппиться данные
21
     * @param string $name
22
     * @return $this
23
     */
24
    public function setName($name);
25
26
    /**
27
     * Возвращает имя колонки
28
     * @return string
29
     */
30
    public function getName();
31
32
    /**
33
     * Устанавливает заголовок для колонки
34
     * @param HeaderInterface | array | Traversable $header
35
     * @return $this
36
     */
37
    public function setHeader($header);
38
39
    /**
40
     * Возвращает объект заголовка для колонки
41
     * @return HeaderInterface
42
     */
43
    public function getHeader();
44
45
    /**
46
     * Устанавливает путь до шаблона строки
47
     * @param string $template
48
     * @return $this
49
     */
50
    public function setTemplate($template);
51
52
    /**
53
     * Возвраащет путь до шаблона
54
     * @return string
55
     */
56
    public function getTemplate();
57
58
    /**
59
     * Опции и настройки колонки
60
     * @param array $options
61
     * @return $this
62
     */
63
    public function setOptions(array $options = []);
64
65
    /**
66
     * Возвращает опции колонки
67
     * @return array
68
     */
69
    public function getOptions();
70
71
    /**
72
     * Аттрибут колонки
73
     * @param string $name
74
     * @param mixed $value
75
     * @return $this
76
     */
77
    public function setAttribute($name, $value);
78
79
    /**
80
     * Аттрибуты колонки
81
     * @param array $attributes
82
     * @return $this
83
     */
84
    public function setAttributes(array $attributes = []);
85
86
    /**
87
     * Возвращает атрибут колонки
88
     * @param $name
89
     * @return mixed|null
90
     */
91
    public function getAttribute($name);
92
93
    /**
94
     * Возвращает атрибуты колонки
95
     * @return array
96
     */
97
    public function getAttributes();
98
99
    /**
100
     * Возвращает параметр по которому сортируются колонки
101
     * @return int
102
     */
103
    public function getOrder();
104
105
    /**
106
     * Устанавливает параметр для сортировки колонок
107
     * @param int $order
108
     * @return $this
109
     */
110
    public function setOrder($order);
111
112
    /**
113
     * Флаг сообщающий можно ли сортировать по колонке
114
     * @return bool
115
     */
116
    public function getSortable();
117
118
    /**
119
     * Устанавливает флаг информирующий можно сортировать или нет по колонке
120
     * @param bool $sortable
121
     * @return $this
122
     */
123
    public function setSortable($sortable);
124
125
    /**
126
     * @param array|Traversable $mutators
127
     * @return mixed
128
     */
129
    public function setMutators($mutators);
130
131
    /**
132
     * @return array|Traversable
133
     */
134
    public function getMutators();
135
136
    /**
137
     * Добавляет мутьатор для ячеек данных
138
     * @param MutatorInterface $mutator
139
     * @return mixed
140
     */
141
    public function addMutator(MutatorInterface $mutator);
142
143
    /**
144
     * Возвращает массив наименований мутаторов которые по дефолту вызываются для колонки
145
     * @return array|Traversable
146
     */
147
    public function getInvokableMutators();
148
149
    /**
150
     * Устанавливает массив наименований мутаторов
151
     * @param array|Traversable $invokableMutators
152
     * @return $this
153
     */
154
    public function setInvokableMutators($invokableMutators);
155
}
0 ignored issues
show
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
156