MethodReplacement::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace Isolate\LazyObjects\Proxy;
4
5
use Isolate\LazyObjects\Proxy\Method\Replacement;
6
7
/**
8
 * @api
9
 */
10
class MethodReplacement
11
{
12
    /**
13
     * @var Method
14
     */
15
    private $method;
16
17
    /**
18
     * @var Replacement
19
     */
20
    private $replacement;
21
22
    /**
23
     * @param Method $method
24
     */
25
    public function __construct(Method $method, Replacement $replacement)
26
    {
27
        $this->method = $method;
28
        $this->replacement = $replacement;
29
    }
30
31
    /**
32
     * @return Replacement
33
     * 
34
     * @api
35
     */
36
    public function getReplacement()
37
    {
38
        return $this->replacement;
39
    }
40
41
    /**
42
     * @return Method
43
     * 
44
     * @api
45
     */
46
    public function getMethod()
47
    {
48
        return $this->method;
49
    }
50
}
51