Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function end(): Mailcode_Commands_Command_End |
||
40 | { |
||
41 | $cmd = $this->commands->createCommand( |
||
42 | 'End', |
||
43 | '', |
||
44 | '', |
||
45 | '{end}' |
||
46 | ); |
||
47 | |||
48 | $this->instantiator->checkCommand($cmd); |
||
49 | |||
50 | if ($cmd instanceof Mailcode_Commands_Command_End) { |
||
51 | return $cmd; |
||
52 | } |
||
53 | |||
54 | throw $this->instantiator->exceptionUnexpectedType('End', $cmd); |
||
55 | } |
||
66 |