Conditions | 7 |
Paths | 7 |
Total Lines | 30 |
Code Lines | 25 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 56 |
Changes | 0 |
1 | <?php |
||
17 | public function __call($method, $parameters) |
||
18 | { |
||
19 | switch ($method) { |
||
20 | case 'arg': |
||
21 | $command = new FunctionArgumentBuilder($this); |
||
22 | $this->attributes[$method] = call_user_func_array([$command, $method], $parameters); |
||
23 | break; |
||
24 | case 'stability': |
||
25 | $command = new StabilityBuilder($this); |
||
26 | $this->attributes[$method] = call_user_func_array([$command, $method], $parameters); |
||
27 | break; |
||
28 | case 'execution': |
||
29 | $command = new ExecutionBuilder($this); |
||
30 | break; |
||
31 | case 'security': |
||
32 | $command = new FunctionSecurityBuilder($this); |
||
33 | break; |
||
34 | case 'set': |
||
35 | $command = new FunctionSetBuilder($this); |
||
36 | break; |
||
37 | case 'parallel': |
||
38 | $command = new ParallelBuilder($this); |
||
39 | break; |
||
40 | default: |
||
41 | $command = $this; |
||
42 | } |
||
43 | |||
44 | parent::__call($method, $parameters); |
||
45 | |||
46 | return $command ?? $this; |
||
47 | } |
||
49 |