Passed
Push — main ( 5907b1...d71986 )
by Torben
03:21
created

ModifyCheckRegistrationSuccessEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Extension "sf_event_mgt" for TYPO3 CMS.
7
 *
8
 * For the full copyright and license information, please read the
9
 * LICENSE.txt file that was distributed with this source code.
10
 */
11
12
namespace DERHANSEN\SfEventMgt\Event;
13
14
/**
15
 * This event is triggered in registrationService after all `checkRegistrationSuccess` have been processed.
16
 * Event listeners can use this event to modify the `$success` and `$result` variable (e.g. if custom logic
17
 * is implemented)
18
 */
19
final class ModifyCheckRegistrationSuccessEvent
20
{
21
    public function __construct(private bool $success, private int $result)
22
    {
23
    }
24
25
    public function getSuccess(): bool
26
    {
27
        return $this->success;
28
    }
29
30
    public function setSuccess(bool $success): void
31
    {
32
        $this->success = $success;
33
    }
34
35
    public function getResult(): int
36
    {
37
        return $this->result;
38
    }
39
40
    public function setResult(int $result): void
41
    {
42
        $this->result = $result;
43
    }
44
}
45