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

ModifyCheckRegistrationSuccessEvent   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 24
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getSuccess() 0 3 1
A setResult() 0 3 1
A getResult() 0 3 1
A setSuccess() 0 3 1
A __construct() 0 2 1
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