Total Complexity | 8 |
Total Lines | 80 |
Duplicated Lines | 0 % |
Coverage | 85% |
Changes | 0 |
1 | <?php |
||
13 | class MethodCall |
||
14 | { |
||
15 | /** |
||
16 | * @var View|MethodsOverloadingTrait|ViewInterface |
||
17 | */ |
||
18 | private $engine; |
||
19 | |||
20 | private $method; |
||
21 | |||
22 | private $args; |
||
23 | |||
24 | private $return = null; |
||
25 | |||
26 | /** |
||
27 | * MethodCall constructor. |
||
28 | * @param ViewInterface|MethodsOverloadingTrait|View $engine |
||
29 | * @param string $method |
||
30 | * @param array $args |
||
31 | */ |
||
32 | 2 | public function __construct($engine, $method, $args) |
|
33 | { |
||
34 | 2 | $this->engine = $engine; |
|
35 | 2 | $this->method = $method; |
|
36 | 2 | $this->args = $args; |
|
37 | 2 | } |
|
38 | |||
39 | /** |
||
40 | * @return View |
||
41 | */ |
||
42 | 2 | public function getEngine() |
|
43 | { |
||
44 | 2 | return $this->engine; |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * @param mixed $engine |
||
49 | */ |
||
50 | public function setEngine($engine): void |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @return string |
||
57 | */ |
||
58 | 2 | public function getName() |
|
59 | { |
||
60 | 2 | return $this->method; |
|
61 | } |
||
62 | |||
63 | /** |
||
64 | * @return array |
||
65 | */ |
||
66 | 2 | public function getArgs() |
|
67 | { |
||
68 | 2 | return $this->args; |
|
69 | } |
||
70 | |||
71 | /** |
||
72 | * @return bool |
||
73 | */ |
||
74 | 2 | public function hasReturn() |
|
77 | } |
||
78 | |||
79 | /** |
||
80 | * @return null |
||
81 | */ |
||
82 | 2 | public function getReturn() |
|
83 | { |
||
84 | 2 | return $this->return; |
|
85 | } |
||
86 | |||
87 | /** |
||
88 | * @param null $return |
||
|
|||
89 | */ |
||
90 | 2 | public function setReturn($return): void |
|
93 | 2 | } |
|
94 | } |
||
95 |