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.
Completed
Push — master ( aa4ff3...5266c0 )
by Alex
22:35
created

Action   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 48
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getName() 0 4 1
A getArguments() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Global Trading Technologies Ltd workflow-extension-bundle package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * (c) fduch <[email protected]>
9
 *
10
 * Date: 20.09.16
11
 */
12
13
namespace Gtt\Bundle\WorkflowExtensionsBundle\Action\ValueObject;
14
15
/**
16
 * Data Value Object represents action name and action arguments
17
 *
18
 * @author fduch <[email protected]>
19
 */
20
class Action
21
{
22
    /**
23
     * Name
24
     *
25
     * @var string
26
     */
27
    private $name;
28
29
    /**
30
     * Arguments
31
     *
32
     * @var array
33
     */
34
    private $arguments;
35
36
    /**
37
     * Action constructor
38
     *
39
     * @param string $name      action name
40
     * @param array  $arguments action arguments
41
     */
42
    public function __construct($name, array $arguments = [])
43
    {
44
        $this->name      = $name;
45
        $this->arguments = $arguments;
46
    }
47
48
    /**
49
     * Returns action name
50
     *
51
     * @return string
52
     */
53
    public function getName()
54
    {
55
        return $this->name;
56
    }
57
58
    /**
59
     * Returns action arguments
60
     *
61
     * @return array
62
     */
63
    public function getArguments()
64
    {
65
        return $this->arguments;
66
    }
67
}