setFile($file); $this->setNamespace($namespace); } /** * Set the file * * @param string $file Include file * @return static */ public function setFile($file) { $this->file = (string)$file; return $this; } /** * Set the namespace * * @param string $namespace Include namespace * @return static */ 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() { return Builder::getInclude($this->file, $this->namespace); } }