GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Branch master (bd52da)
by Andrey
04:54 queued 01:45
created

TestCommand   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 52
c 0
b 0
f 0
wmc 5
lcom 1
cbo 1
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A handle() 0 5 1
A handleFromArray() 0 4 1
A commandName() 0 4 1
A getUsername() 0 4 1
A getEmail() 0 4 1
1
<?php
2
3
/**
4
 * (c) itmedia.by <[email protected]>
5
 */
6
7
namespace Itmedia\CommandBusBundle\Tests\Stub;
8
9
use Itmedia\CommandBusBundle\Command\Command;
10
use Itmedia\CommandBusBundle\Command\HandlePropertiesFormArrayTrait;
11
use Symfony\Component\Validator\Constraints as Assert;
12
use Symfony\Component\Validator\Constraints\NotBlank;
13
14
class TestCommand implements Command
15
{
16
    use HandlePropertiesFormArrayTrait;
17
18
    /**
19
     * @var string
20
     * @NotBlank()
21
     */
22
    private $username;
23
24
    /**
25
     * @var string
26
     * @NotBlank()
27
     * @Assert\Email()
28
     */
29
    private $email;
30
31
32
    public function handle($username, $email)
33
    {
34
        $this->username = $username;
35
        $this->email = $email;
36
    }
37
38
39
    public function handleFromArray(array $data)
40
    {
41
        $this->handleProperties($data);
42
    }
43
44
45
    public function commandName()
46
    {
47
        return 'test_command';
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getUsername()
54
    {
55
        return $this->username;
56
    }
57
58
    /**
59
     * @return string
60
     */
61
    public function getEmail()
62
    {
63
        return $this->email;
64
    }
65
}
66