public function join($table, $type = null) { $this->joins = $table; $this->joinsType = $type; return $this; }