| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait CharsetEncoderAware |
||
| 8 | { |
||
| 9 | protected static $charsetEncoder; |
||
| 10 | |||
| 11 | public function getCharsetEncoder() |
||
| 12 | { |
||
| 13 | if (self::$charsetEncoder === null) { |
||
| 14 | self::$charsetEncoder = Charset::instance(); |
||
| 15 | } |
||
| 16 | return self::$charsetEncoder; |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param $charsetEncoder |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | public static function setCharsetEncoder($charsetEncoder) |
||
| 26 | } |
||
| 27 | } |
||
| 28 |