1 <?php 2 3 namespace PhpXmlRpc\Traits; 4 5 use PhpXmlRpc\Helper\Charset; 6 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) 24 { 25 self::$charsetEncoder = $charsetEncoder; 26 } 27 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body