InflectorDefinition   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getInterface() 0 4 1
A getMethods() 0 4 1
1
<?php
2
3
namespace TomPHP\ContainerConfigurator;
4
5
/**
6
 * @internal
7
 */
8
final class InflectorDefinition
9
{
10
    /**
11
     * @var string
12
     */
13
    private $interface;
14
15
    /**
16
     * @var array
17
     */
18
    private $methods;
19
20
    /**
21
     * @param string $interface
22
     * @param array  $methods
23
     */
24
    public function __construct($interface, array $methods)
25
    {
26
        $this->interface = $interface;
27
        $this->methods   = $methods;
28
    }
29
30
    /**
31
     * @return string
32
     */
33
    public function getInterface()
34
    {
35
        return $this->interface;
36
    }
37
38
    /**
39
     * @return array
40
     */
41
    public function getMethods()
42
    {
43
        return $this->methods;
44
    }
45
}
46