public function __construct(CharsetManager $charset = null) { if ($charset == null) { $charset = new Charset(); } $this->charset = $charset; }