InflectorDefinition::getInterface()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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