Completed
Push — master ( f0a67b...3b5eef )
by recca
02:02
created

Action::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
crap 1
1
<?php
2
3
namespace Recca0120\Repository;
4
5
class Action
6
{
7
    /**
8
     * $type.
9
     *
10
     * @var string
11
     */
12
    public $type;
13
14
    /**
15
     * $method.
16
     *
17
     * @var string
18
     */
19
    public $method;
20
21
    /**
22
     * $parameters.
23
     *
24
     * @var mixed
25
     */
26
    public $parameters;
27
28
    /**
29
     * __construct.
30
     *
31
     * @param string $type
32
     * @param string $method
33
     * @param array $parameters
34
     */
35 24
    public function __construct($type, $method, $parameters = [])
36
    {
37 24
        $this->type = $type;
38 24
        $this->method = $method;
39 24
        $this->parameters = $parameters;
40 24
    }
41
}
42