UsersRenamedEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 27
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRenames() 0 4 1
1
<?php
2
3
namespace Skobkin\Bundle\PointToolsBundle\Event;
4
5
use Skobkin\Bundle\PointToolsBundle\Entity\UserRenameEvent;
6
use Symfony\Component\EventDispatcher\Event;
7
8
/**
9
 * Dispatched when one or more users were renamed
10
 */
11
class UsersRenamedEvent extends Event
12
{
13
    const NAME = 'app.users.renamed';
14
15
    /**
16
     * @var UserRenameEvent[]
17
     */
18
    private $renames;
19
20
    /**
21
     * UsersRenamedEvent constructor.
22
     *
23
     * @param UserRenameEvent[] $renames
24
     */
25
    public function __construct(array $renames)
26
    {
27
        $this->renames = $renames;
28
    }
29
30
    /**
31
     * @return UserRenameEvent[]
32
     */
33
    public function getRenames(): array
34
    {
35
        return $this->renames;
36
    }
37
}