LogoutUserCommand   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 56
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A email() 0 4 1
A setEmail() 0 4 1
A isLogin() 0 4 1
A named() 0 4 1
A loadValidatorMetadata() 0 3 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\Cqrs\Tests\Fixtures\Command;
13
14
use Cubiche\Core\Cqrs\Command\CommandNamedInterface;
15
use Cubiche\Core\Validator\Mapping\ClassMetadata;
16
17
/**
18
 * LogoutUserCommand class.
19
 *
20
 * @author Ivannis Suárez Jerez <[email protected]>
21
 */
22
class LogoutUserCommand implements CommandNamedInterface
23
{
24
    /**
25
     * @var string
26
     */
27
    protected $email;
28
29
    /**
30
     * LogoutUserCommand constructor.
31
     *
32
     * @param $email
33
     */
34
    public function __construct($email)
35
    {
36
        $this->setEmail($email);
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function email()
43
    {
44
        return $this->email;
45
    }
46
47
    /**
48
     * @param string $email
49
     */
50
    public function setEmail($email)
51
    {
52
        $this->email = $email;
53
    }
54
55
    /**
56
     * @return bool
57
     */
58
    public function isLogin()
59
    {
60
        return false;
61
    }
62
63
    /**
64
     * {@inheritdoc}
65
     */
66
    public function named()
67
    {
68
        return 'logout_user';
69
    }
70
71
    /**
72
     * {@inheritdoc}
73
     */
74
    public static function loadValidatorMetadata(ClassMetadata $classMetadata)
0 ignored issues
show
Unused Code introduced by
The parameter $classMetadata is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
75
    {
76
    }
77
}
78