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