| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | trait CurrencyNameTrait |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * @throws Mailcode_Exception |
||
| 29 | */ |
||
| 30 | public function isCurrencyNameEnabled(): bool |
||
| 31 | { |
||
| 32 | return $this->requireParams() |
||
|
|
|||
| 33 | ->getInfo() |
||
| 34 | ->hasKeyword(Mailcode_Commands_Keywords::TYPE_CURRENCY_NAME); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param bool $enabled |
||
| 39 | * @return $this |
||
| 40 | * @throws Mailcode_Exception |
||
| 41 | */ |
||
| 42 | public function setCurrencyNameEnabled(bool $enabled): self |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @throws Mailcode_Exception |
||
| 53 | */ |
||
| 54 | public function getCurrencyNameToken(): ?Mailcode_Parser_Statement_Tokenizer_Token_Keyword |
||
| 60 | } |
||
| 61 | } |
||
| 62 |