Call   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 33
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getMethod() 0 4 1
A getArguments() 0 4 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