Completed
Push — master ( 5a4255...e7909d )
by Kevin
04:25 queued 02:10
created

GenericInstruction   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 46
rs 10
c 1
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getClassName() 0 4 1
A getMethod() 0 4 1
A getParams() 0 4 1
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
}