public function setHelpersPath($helpersPath) { if (is_array($helpersPath)) { foreach ($helpersPath as $path) { $this->addHelperPath((string) $path); } } else { $this->addHelperPath((string) $helpersPath); } return $this; }