Call::getMethod()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php declare(strict_types=1);
2
3
namespace Phact\Container\Details;
4
5
class Call implements CallInterface
6
{
7
    /**
8
     * @var string
9
     */
10
    private $method;
11
    /**
12
     * @var array
13
     */
14
    private $arguments;
15
16 6
    public function __construct(string $method, array $arguments = [])
17
    {
18 6
        $this->method = $method;
19 6
        $this->arguments = $arguments;
20 6
    }
21
22
    /**
23
     * @return string
24
     */
25 5
    public function getMethod(): string
26
    {
27 5
        return $this->method;
28
    }
29
30
    /**
31
     * @return array
32
     */
33 5
    public function getArguments(): array
34
    {
35 5
        return $this->arguments;
36
    }
37
}
38