| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class Mailcode_Parser_Statement_Tokenizer_Token_Variable extends Mailcode_Parser_Statement_Tokenizer_Token |
||
| 22 | { |
||
| 23 | const ERROR_NOT_A_VARIABLE_INSTANCE = 49501; |
||
| 24 | |||
| 25 | public function getVariable() : Mailcode_Variables_Variable |
||
| 26 | { |
||
| 27 | if($this->subject instanceof Mailcode_Variables_Variable) |
||
| 28 | { |
||
| 29 | return $this->subject; |
||
| 30 | } |
||
| 31 | |||
| 32 | throw new Mailcode_Exception( |
||
| 33 | 'Subject is not a variable instance.', |
||
| 34 | null, |
||
| 35 | self::ERROR_NOT_A_VARIABLE_INSTANCE |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getNormalized() : string |
||
| 42 | } |
||
| 43 | } |
||
| 44 |