LogoutUserEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 33
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A email() 0 4 1
A setEmail() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the Cubiche package.
5
 *
6
 * Copyright (c) Cubiche
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Cubiche\Core\EventBus\Tests\Fixtures\Event;
13
14
use Cubiche\Core\EventBus\Event\Event;
15
16
/**
17
 * LogoutUserEvent class.
18
 *
19
 * @author Ivannis Suárez Jerez <[email protected]>
20
 */
21
class LogoutUserEvent extends Event
22
{
23
    /**
24
     * @var string
25
     */
26
    protected $email;
27
28
    /**
29
     * LogoutUserEvent constructor.
30
     *
31
     * @param $email
32
     */
33
    public function __construct($email)
34
    {
35
        $this->setEmail($email);
36
    }
37
38
    /**
39
     * @return string
40
     */
41
    public function email()
42
    {
43
        return $this->email;
44
    }
45
46
    /**
47
     * @param string $email
48
     */
49
    public function setEmail($email)
50
    {
51
        $this->email = $email;
52
    }
53
}
54