public function __construct($config = []) { if ($config) { $this->setConfig($config); } return $this; }