Test Setup Failed
Push — main ( abdcb9...2e5f68 )
by Slawomir
04:37
created

UserRenamedOEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
namespace App\Modules\Security\Domain\Event\Outbound;
4
5
use App\Infrastructure\Events\ApplicationOutboundEvent;
6
7
class UserRenamedOEvent extends ApplicationOutboundEvent
8
{
9
    const EVENT_NAME = "USER_RENAMED";
10
11
    /**
12
     * @param string $oldLogin
13
     * @param string $newLogin
14
     */
15
    public function __construct(
16
        string $oldLogin,
17
        string $newLogin
18
    )
19
    {
20
        parent::__construct(self::EVENT_NAME,
21
            [
22
                'oldLogin' => $oldLogin,
23
                'newLogin' => $newLogin
24
            ]
25
        );
26
    }
27
}