public function __construct(array $configs = []) { $this->setConfigs($configs); $this->reset(); $this->init(); }