setFile($file); $this->setNamespace($namespace); } /** * Set the File * * @param string $file Include File * @return \FML\Script\ScriptInclude */ public function setFile($file) { $this->file = (string)$file; return $this; } /** * Set the Namespace * * @param string $namespace Include Namespace * @return \FML\Script\ScriptInclude */ public function setNamespace($namespace) { $this->namespace = (string)$namespace; return $this; } /** * Get the Namespace * * @return string */ public function getNamespace() { return $this->namespace; } /** * Build the Script Include Text * * @return string */ public function __toString() { $scriptText = Builder::getInclude($this->file, $this->namespace); return $scriptText; } }