public function __construct($handler = null) { if (!is_null($handler)) { $this->addHandler($handler); } $this->_init(); }