Completed
Pull Request — master (#148)
by Kevin
02:16
created

GenericInstruction::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 6
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
1
<?php
2
3
namespace Magium\TestCase\Configurable;
4
5
class GenericInstruction implements InstructionInterface
6
{
7
    protected $className;
8
    protected $method;
9
    protected $params;
10
11
    /**
12
     * GenericInstruction constructor.
13
     * @param $className
14
     * @param $method
15
     * @param $params
16
     */
17
    public function __construct($className, $method, $params = null)
18
    {
19
        $this->className = $className;
20
        $this->method = $method;
21
        $this->params = $params;
22
    }
23
24
    /**
25
     * @return mixed
26
     */
27
    public function getClassName()
28
    {
29
        return $this->className;
30
    }
31
32
    /**
33
     * @return mixed
34
     */
35
    public function getMethod()
36
    {
37
        return $this->method;
38
    }
39
40
    /**
41
     * @return mixed
42
     */
43
    public function getParams()
44
    {
45
        return $this->params;
46
    }
47
48
49
50
}