1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
/* |
6
|
|
|
* This file is part of the Zikula package. |
7
|
|
|
* |
8
|
|
|
* Copyright Zikula - 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\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
|
|
|
|
20
|
|
|
/** |
21
|
|
|
* HookRuntime |
22
|
|
|
* |
23
|
|
|
* @ORM\Table(name="hook_runtime") |
24
|
|
|
* @ORM\Entity(repositoryClass="Zikula\Bundle\HookBundle\Repository\HookRuntimeRepository") |
25
|
|
|
*/ |
26
|
|
|
class HookRuntimeEntity extends EntityAccess |
27
|
|
|
{ |
28
|
|
|
use HookEntityTrait; |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* @ORM\Column(name="id", type="integer", nullable=false) |
32
|
|
|
* @ORM\Id |
33
|
|
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
34
|
|
|
* @var int |
35
|
|
|
*/ |
36
|
|
|
private $id; |
|
|
|
|
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @ORM\Column(name="sowner", type="string", length=60, nullable=false) |
40
|
|
|
* @Assert\Length(min="0", max="60", allowEmptyString="false") |
41
|
|
|
* @var string |
42
|
|
|
*/ |
43
|
|
|
private $sowner; |
|
|
|
|
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @ORM\Column(name="powner", type="string", length=60, nullable=false) |
47
|
|
|
* @Assert\Length(min="0", max="60", allowEmptyString="false") |
48
|
|
|
* @var string |
49
|
|
|
*/ |
50
|
|
|
private $powner; |
|
|
|
|
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @ORM\Column(name="sareaid", type="string", length=512, nullable=false) |
54
|
|
|
* @Assert\Length(min="0", max="512", allowEmptyString="false") |
55
|
|
|
* @var string |
56
|
|
|
*/ |
57
|
|
|
private $sareaid; |
|
|
|
|
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @ORM\Column(name="pareaid", type="string", length=512, nullable=false) |
61
|
|
|
* @Assert\Length(min="0", max="512", allowEmptyString="false") |
62
|
|
|
* @var string |
63
|
|
|
*/ |
64
|
|
|
private $pareaid; |
|
|
|
|
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @ORM\Column(name="eventname", type="string", length=120, nullable=false) |
68
|
|
|
* @Assert\Length(min="0", max="120", allowEmptyString="false") |
69
|
|
|
* @var string |
70
|
|
|
*/ |
71
|
|
|
private $eventname; |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @ORM\Column(name="classname", type="string", length=120, nullable=false) |
75
|
|
|
* @Assert\Length(min="0", max="120", allowEmptyString="false") |
76
|
|
|
* @var string |
77
|
|
|
*/ |
78
|
|
|
private $classname; |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @ORM\Column(name="method", type="string", length=60, nullable=false) |
82
|
|
|
* @Assert\Length(min="0", max="60", allowEmptyString="false") |
83
|
|
|
* @var string |
84
|
|
|
*/ |
85
|
|
|
private $method; |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @ORM\Column(name="priority", type="integer", nullable=false) |
89
|
|
|
* @var int |
90
|
|
|
*/ |
91
|
|
|
private $priority; |
92
|
|
|
|
93
|
|
|
public function setEventname(string $eventname): void |
94
|
|
|
{ |
95
|
|
|
$this->eventname = $eventname; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
public function getEventname(): string |
99
|
|
|
{ |
100
|
|
|
return $this->eventname; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
public function setClassname(string $classname): void |
104
|
|
|
{ |
105
|
|
|
$this->classname = $classname; |
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
public function getClassname(): string |
109
|
|
|
{ |
110
|
|
|
return $this->classname; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
public function setMethod(string $method): void |
114
|
|
|
{ |
115
|
|
|
$this->method = $method; |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
public function getMethod(): string |
119
|
|
|
{ |
120
|
|
|
return $this->method; |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
public function setPriority(int $priority): void |
124
|
|
|
{ |
125
|
|
|
$this->priority = $priority; |
126
|
|
|
} |
127
|
|
|
|
128
|
|
|
public function getPriority(): int |
129
|
|
|
{ |
130
|
|
|
return $this->priority; |
131
|
|
|
} |
132
|
|
|
} |
133
|
|
|
|