Completed
Push — master ( 84fa1e...e029dc )
by Ivannis Suárez
02:51
created

LogoutUserCommand::loadValidatorMetadata()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
/**
3
 * This file is part of the Cubiche package.
4
 *
5
 * Copyright (c) Cubiche
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Cubiche\Core\Bus\Tests\Fixtures\Command;
11
12
use Cubiche\Core\Bus\Command\CommandNamedInterface;
13
use Cubiche\Core\Validator\Mapping\ClassMetadata;
14
15
/**
16
 * LogoutUserCommand class.
17
 *
18
 * @author Ivannis Suárez Jerez <[email protected]>
19
 */
20
class LogoutUserCommand implements CommandNamedInterface
21
{
22
    /**
23
     * @var string
24
     */
25
    protected $email;
26
27
    /**
28
     * LogoutUserCommand constructor.
29
     *
30
     * @param $email
31
     */
32
    public function __construct($email)
33
    {
34
        $this->setEmail($email);
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function email()
41
    {
42
        return $this->email;
43
    }
44
45
    /**
46
     * @param string $email
47
     */
48
    public function setEmail($email)
49
    {
50
        $this->email = $email;
51
    }
52
53
    /**
54
     * @return bool
55
     */
56
    public function isLogin()
57
    {
58
        return false;
59
    }
60
61
    /**
62
     * {@inheritdoc}
63
     */
64
    public function name()
65
    {
66
        return 'logout_user';
67
    }
68
69
    /**
70
     * {@inheritdoc}
71
     */
72
    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...
73
    {
74
    }
75
}
76