Completed
Push — master ( 7c00aa...d8aae5 )
by Ivannis Suárez
19:41
created

LogoutUserMessage::loadValidatorMetadata()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 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\Bus\Tests\Fixtures\Message;
13
14
use Cubiche\Core\Bus\MessageNamedInterface;
15
use Cubiche\Core\Validator\Mapping\ClassMetadata;
16
17
/**
18
 * LogoutUserMessage class.
19
 *
20
 * @author Ivannis Suárez Jerez <[email protected]>
21
 */
22
class LogoutUserMessage implements MessageNamedInterface
23
{
24
    /**
25
     * @var string
26
     */
27
    protected $email;
28
29
    /**
30
     * LogoutUserMessage 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
     * {@inheritdoc}
57
     */
58
    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...
59
    {
60
    }
61
62
    /**
63
     * {@inheritdoc}
64
     */
65
    public function named()
66
    {
67
        return 'logout_user';
68
    }
69
}
70