table = $table->get_value(); $this->alias = $alias ? $alias->get_value() : null; } /** * Get the FROM as SQL * * @return string */ public function get_as_sql() { if ( $this->alias && $this->alias !== $this->table ) { return $this->table . ' AS ' . $this->alias; } return $this->table; } }