Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function else() : Mailcode_Commands_Command_Else |
||
24 | { |
||
25 | $cmd = Mailcode::create()->getCommands()->createCommand( |
||
26 | 'Else', |
||
27 | '', |
||
28 | '', |
||
29 | '{else}' |
||
30 | ); |
||
31 | |||
32 | $this->instantiator->checkCommand($cmd); |
||
33 | |||
34 | if($cmd instanceof Mailcode_Commands_Command_Else) |
||
35 | { |
||
36 | return $cmd; |
||
37 | } |
||
38 | |||
39 | throw $this->instantiator->exceptionUnexpectedType('Else', $cmd); |
||
40 | } |
||
42 |