/**
  * @param string $path Path to file
  * @param string $name Override file name
  *
  * @return Package
  * @throws \Exception
  */
 public function setScriptfile($path, $name = null)
 {
     $this->scriptfile = File::createFromPath($path, $name ?: $this->getPkgFileName('php', false));
     return $this;
 }
 /**
  * @param string $path
  * @param string $name
  *
  * @return Language
  * @throws \Exception
  */
 public function setFile($path, $name = null)
 {
     $this->file = File::createFromPath($path, $name);
     return $this;
 }