code: public function setThemesPath($path)
      {
          if (!is_dir($path)) {
              throw new \Exception(
                  sprintf('Path "%s" not found.', $path)
              );
          }
  
          $this->themesPath = rtrim($path, DS);
  
          return $this;
      }
docs: Set dir to folder that store themes
  
  @param string $path dir path
  
  @throws \Exception
  @return mixed