LogoutUserCommand::named()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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