Method::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

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