1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
/* |
6
|
|
|
* This file is part of the Zikula package. |
7
|
|
|
* |
8
|
|
|
* Copyright Zikula Foundation - https://ziku.la/ |
9
|
|
|
* |
10
|
|
|
* For the full copyright and license information, please view the LICENSE |
11
|
|
|
* file that was distributed with this source code. |
12
|
|
|
*/ |
13
|
|
|
|
14
|
|
|
namespace Zikula\Bundle\HookBundle\Dispatcher\Storage\Doctrine\Entity; |
15
|
|
|
|
16
|
|
|
use Doctrine\ORM\Mapping as ORM; |
17
|
|
|
use Symfony\Component\Validator\Constraints as Assert; |
18
|
|
|
use Zikula\Bundle\CoreBundle\Doctrine\EntityAccess; |
19
|
|
|
use Zikula\Bundle\HookBundle\Dispatcher\Storage\Doctrine\Traits\HookEntityTrait; |
|
|
|
|
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* HookRuntime |
23
|
|
|
* |
24
|
|
|
* @ORM\Table(name="hook_runtime") |
25
|
|
|
* @ORM\Entity(repositoryClass="Zikula\Bundle\HookBundle\Dispatcher\Storage\Doctrine\Entity\Repository\HookRuntimeRepository") |
26
|
|
|
*/ |
27
|
|
|
class HookRuntimeEntity extends EntityAccess |
28
|
|
|
{ |
29
|
|
|
use HookEntityTrait; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @ORM\Column(name="id", type="integer", nullable=false) |
33
|
|
|
* @ORM\Id |
34
|
|
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
35
|
|
|
* @var int |
36
|
|
|
*/ |
37
|
|
|
private $id; |
|
|
|
|
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @ORM\Column(name="sowner", type="string", length=60, nullable=false) |
41
|
|
|
* @Assert\Length(min="0", max="60", allowEmptyString="false") |
42
|
|
|
* @var string |
43
|
|
|
*/ |
44
|
|
|
private $sowner; |
|
|
|
|
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @ORM\Column(name="powner", type="string", length=60, nullable=false) |
48
|
|
|
* @Assert\Length(min="0", max="60", allowEmptyString="false") |
49
|
|
|
* @var string |
50
|
|
|
*/ |
51
|
|
|
private $powner; |
|
|
|
|
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @ORM\Column(name="sareaid", type="string", length=512, nullable=false) |
55
|
|
|
* @Assert\Length(min="0", max="512", allowEmptyString="false") |
56
|
|
|
* @var string |
57
|
|
|
*/ |
58
|
|
|
private $sareaid; |
|
|
|
|
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @ORM\Column(name="pareaid", type="string", length=512, nullable=false) |
62
|
|
|
* @Assert\Length(min="0", max="512", allowEmptyString="false") |
63
|
|
|
* @var string |
64
|
|
|
*/ |
65
|
|
|
private $pareaid; |
|
|
|
|
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* @ORM\Column(name="eventname", type="string", length=120, nullable=false) |
69
|
|
|
* @Assert\Length(min="0", max="120", allowEmptyString="false") |
70
|
|
|
* @var string |
71
|
|
|
*/ |
72
|
|
|
private $eventname; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @ORM\Column(name="classname", type="string", length=120, nullable=false) |
76
|
|
|
* @Assert\Length(min="0", max="120", allowEmptyString="false") |
77
|
|
|
* @var string |
78
|
|
|
*/ |
79
|
|
|
private $classname; |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* @ORM\Column(name="method", type="string", length=60, nullable=false) |
83
|
|
|
* @Assert\Length(min="0", max="60", allowEmptyString="false") |
84
|
|
|
* @var string |
85
|
|
|
*/ |
86
|
|
|
private $method; |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @ORM\Column(name="priority", type="integer", nullable=false) |
90
|
|
|
* @var int |
91
|
|
|
*/ |
92
|
|
|
private $priority; |
93
|
|
|
|
94
|
|
|
public function setEventname(string $eventname): void |
95
|
|
|
{ |
96
|
|
|
$this->eventname = $eventname; |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
public function getEventname(): string |
100
|
|
|
{ |
101
|
|
|
return $this->eventname; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
public function setClassname(string $classname): void |
105
|
|
|
{ |
106
|
|
|
$this->classname = $classname; |
107
|
|
|
} |
108
|
|
|
|
109
|
|
|
public function getClassname(): string |
110
|
|
|
{ |
111
|
|
|
return $this->classname; |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
public function setMethod(string $method): void |
115
|
|
|
{ |
116
|
|
|
$this->method = $method; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
public function getMethod(): string |
120
|
|
|
{ |
121
|
|
|
return $this->method; |
122
|
|
|
} |
123
|
|
|
|
124
|
|
|
public function setPriority(int $priority): void |
125
|
|
|
{ |
126
|
|
|
$this->priority = $priority; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
public function getPriority(): int |
130
|
|
|
{ |
131
|
|
|
return $this->priority; |
132
|
|
|
} |
133
|
|
|
} |
134
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths