| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 61 | public function getVariable() : Mailcode_Variables_Variable |
||
| 62 | { |
||
| 63 | if($this->variableToken instanceof Mailcode_Parser_Statement_Tokenizer_Token_Variable) |
||
| 64 | { |
||
| 65 | return $this->variableToken->getVariable(); |
||
| 66 | } |
||
| 67 | |||
| 68 | throw new Mailcode_Exception( |
||
| 69 | 'No variable available', |
||
| 70 | null, |
||
| 71 | Mailcode_Commands_IfBase::ERROR_NO_VARIABLE_AVAILABLE |
||
| 72 | ); |
||
| 75 |