@@ 8-90 (lines=83) @@ | ||
5 | /** |
|
6 | * Event add_document for Aggregate Root SpiegazioneSessioneCampo |
|
7 | */ |
|
8 | final class SpiegazioneSessioneCampoAddDocumentEvent implements DomainEvent |
|
9 | { |
|
10 | /** |
|
11 | * special value |
|
12 | * |
|
13 | * @var int |
|
14 | */ |
|
15 | private $special; |
|
16 | ||
17 | /** |
|
18 | * quando accade l'evento |
|
19 | * |
|
20 | * @var \DateTime |
|
21 | */ |
|
22 | private $occurredOn; |
|
23 | ||
24 | /** |
|
25 | * id dell'aggregato root relativo all'evento |
|
26 | * |
|
27 | * @var int |
|
28 | */ |
|
29 | private $aggregateId; |
|
30 | ||
31 | /** |
|
32 | * proprietà dell'evento |
|
33 | * |
|
34 | * @var array |
|
35 | */ |
|
36 | private $properties; |
|
37 | ||
38 | /** |
|
39 | * costruttore |
|
40 | */ |
|
41 | final public function __construct($aggregateId, array $properties = null) |
|
42 | { |
|
43 | // autoinizialize |
|
44 | $this->special = 10; |
|
45 | // autoinizialize |
|
46 | $this->occurredOn = new \DateTime(); |
|
47 | $this->aggregateId = $aggregateId; |
|
48 | $this->properties = $properties; |
|
49 | } |
|
50 | ||
51 | /** |
|
52 | * @return int |
|
53 | */ |
|
54 | final public function getSpecial() |
|
55 | { |
|
56 | return $this->special; |
|
57 | } |
|
58 | ||
59 | /** |
|
60 | * @var special int |
|
61 | */ |
|
62 | final public function setSpecial(int $special) |
|
63 | { |
|
64 | $this->special = $special; |
|
65 | } |
|
66 | ||
67 | /** |
|
68 | * @return \DateTime |
|
69 | */ |
|
70 | final public function getOccurredOn() |
|
71 | { |
|
72 | return $this->occurredOn; |
|
73 | } |
|
74 | ||
75 | /** |
|
76 | * @return int |
|
77 | */ |
|
78 | final public function getAggregateId() |
|
79 | { |
|
80 | return $this->aggregateId; |
|
81 | } |
|
82 | ||
83 | /** |
|
84 | * @return array |
|
85 | */ |
|
86 | final public function getProperties() |
|
87 | { |
|
88 | return $this->properties; |
|
89 | } |
|
90 | } |
|
91 |
@@ 8-90 (lines=83) @@ | ||
5 | /** |
|
6 | * Event create for Aggregate Root SpiegazioneSessioneCampo |
|
7 | */ |
|
8 | final class SpiegazioneSessioneCampoCreateEvent implements DomainEvent |
|
9 | { |
|
10 | /** |
|
11 | * special value |
|
12 | * |
|
13 | * @var int |
|
14 | */ |
|
15 | private $special; |
|
16 | ||
17 | /** |
|
18 | * quando accade l'evento |
|
19 | * |
|
20 | * @var \DateTime |
|
21 | */ |
|
22 | private $occurredOn; |
|
23 | ||
24 | /** |
|
25 | * id dell'aggregato root relativo all'evento |
|
26 | * |
|
27 | * @var int |
|
28 | */ |
|
29 | private $aggregateId; |
|
30 | ||
31 | /** |
|
32 | * proprietà dell'evento |
|
33 | * |
|
34 | * @var array |
|
35 | */ |
|
36 | private $properties; |
|
37 | ||
38 | /** |
|
39 | * costruttore |
|
40 | */ |
|
41 | final public function __construct($aggregateId, array $properties = null) |
|
42 | { |
|
43 | // autoinizialize |
|
44 | $this->special = 10; |
|
45 | // autoinizialize |
|
46 | $this->occurredOn = new \DateTime(); |
|
47 | $this->aggregateId = $aggregateId; |
|
48 | $this->properties = $properties; |
|
49 | } |
|
50 | ||
51 | /** |
|
52 | * @return int |
|
53 | */ |
|
54 | final public function getSpecial() |
|
55 | { |
|
56 | return $this->special; |
|
57 | } |
|
58 | ||
59 | /** |
|
60 | * @var special int |
|
61 | */ |
|
62 | final public function setSpecial(int $special) |
|
63 | { |
|
64 | $this->special = $special; |
|
65 | } |
|
66 | ||
67 | /** |
|
68 | * @return \DateTime |
|
69 | */ |
|
70 | final public function getOccurredOn() |
|
71 | { |
|
72 | return $this->occurredOn; |
|
73 | } |
|
74 | ||
75 | /** |
|
76 | * @return int |
|
77 | */ |
|
78 | final public function getAggregateId() |
|
79 | { |
|
80 | return $this->aggregateId; |
|
81 | } |
|
82 | ||
83 | /** |
|
84 | * @return array |
|
85 | */ |
|
86 | final public function getProperties() |
|
87 | { |
|
88 | return $this->properties; |
|
89 | } |
|
90 | } |
|
91 |
@@ 8-90 (lines=83) @@ | ||
5 | /** |
|
6 | * Event delete for Aggregate Root SpiegazioneSessioneCampo |
|
7 | */ |
|
8 | final class SpiegazioneSessioneCampoDeleteEvent implements DomainEvent |
|
9 | { |
|
10 | /** |
|
11 | * special value |
|
12 | * |
|
13 | * @var int |
|
14 | */ |
|
15 | private $special; |
|
16 | ||
17 | /** |
|
18 | * quando accade l'evento |
|
19 | * |
|
20 | * @var \DateTime |
|
21 | */ |
|
22 | private $occurredOn; |
|
23 | ||
24 | /** |
|
25 | * id dell'aggregato root relativo all'evento |
|
26 | * |
|
27 | * @var int |
|
28 | */ |
|
29 | private $aggregateId; |
|
30 | ||
31 | /** |
|
32 | * proprietà dell'evento |
|
33 | * |
|
34 | * @var array |
|
35 | */ |
|
36 | private $properties; |
|
37 | ||
38 | /** |
|
39 | * costruttore |
|
40 | */ |
|
41 | final public function __construct($aggregateId, array $properties = null) |
|
42 | { |
|
43 | // autoinizialize |
|
44 | $this->special = 10; |
|
45 | // autoinizialize |
|
46 | $this->occurredOn = new \DateTime(); |
|
47 | $this->aggregateId = $aggregateId; |
|
48 | $this->properties = $properties; |
|
49 | } |
|
50 | ||
51 | /** |
|
52 | * @return int |
|
53 | */ |
|
54 | final public function getSpecial() |
|
55 | { |
|
56 | return $this->special; |
|
57 | } |
|
58 | ||
59 | /** |
|
60 | * @var special int |
|
61 | */ |
|
62 | final public function setSpecial(int $special) |
|
63 | { |
|
64 | $this->special = $special; |
|
65 | } |
|
66 | ||
67 | /** |
|
68 | * @return \DateTime |
|
69 | */ |
|
70 | final public function getOccurredOn() |
|
71 | { |
|
72 | return $this->occurredOn; |
|
73 | } |
|
74 | ||
75 | /** |
|
76 | * @return int |
|
77 | */ |
|
78 | final public function getAggregateId() |
|
79 | { |
|
80 | return $this->aggregateId; |
|
81 | } |
|
82 | ||
83 | /** |
|
84 | * @return array |
|
85 | */ |
|
86 | final public function getProperties() |
|
87 | { |
|
88 | return $this->properties; |
|
89 | } |
|
90 | } |
|
91 |