| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 54 | public function getVariable() : Mailcode_Variables_Variable |
||
| 55 | { |
||
| 56 | if($this->variableToken instanceof Mailcode_Parser_Statement_Tokenizer_Token_Variable) |
||
| 57 | { |
||
| 58 | return $this->variableToken->getVariable(); |
||
| 59 | } |
||
| 60 | |||
| 61 | throw new Mailcode_Exception( |
||
| 62 | 'No variable available', |
||
| 63 | null, |
||
| 64 | Mailcode_Commands_CommonConstants::ERROR_NO_VARIABLE_AVAILABLE |
||
| 65 | ); |
||
| 73 |