Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | trait ShortenTrait |
||
30 | { |
||
31 | public function isShortenEnabled() : bool |
||
32 | { |
||
33 | return $this->requireParams() |
||
|
|||
34 | ->getInfo() |
||
35 | ->hasKeyword(Mailcode_Commands_Keywords::TYPE_SHORTEN); |
||
36 | } |
||
37 | |||
38 | public function setShortenEnabled(bool $enabled) : self |
||
45 | } |
||
46 | |||
47 | public function getShortenToken() : ?Mailcode_Parser_Statement_Tokenizer_Token_Keyword |
||
53 | } |
||
54 | |||
55 | protected function validateSyntax_shorten() : void |
||
57 | } |
||
58 | } |