name = $name; if (!is_null($schema)) { $this->schema = $schema; } } /** * @return string */ public function __toString() { return (string) $this->name; } /** * @param bool $view * * @return $this */ public function setView($view) { $this->view = $view; return $this; } /** * @return bool */ public function isView() { return $this->view; } /** * @return string */ public function getName() { return $this->name; } /** * @return string */ public function getAlias() { return $this->alias; } /** * @return string */ public function getCompleteName() { $alias = ($this->alias) ? " AS {$this->alias}" : ''; $schema = ($this->schema) ? "{$this->schema}." : ''; return $schema.$this->name.$alias; } /** * @param string $alias * * @return $this */ public function setAlias($alias) { $this->alias = $alias; return $this; } /** * @return string */ public function getSchema() { return $this->schema; } /** * @param string * @param string $schema * * @return $this */ public function setSchema($schema) { $this->schema = $schema; return $this; } }