public function select(array $columns = null): QueryBuilder
    {
        $this->type = Statement::SELECT;

        if (null !== $columns) {
            $this->columns = $columns;
        } else {
            $this->columns[] = '*';
        }

        return $this;
    }
public function select(array $columns = null): QueryBuilder
    {
        $this->type = Statement::SELECT;

        if (null !== $columns) {
            $this->columns = $columns;
        } else {
            $this->columns[] = '*';
        }

        return $this;
    }
public function select ( array $ columns = null ) : QueryBuilder { $ this -> type = Statement :: SELECT ; if ( null !== $ columns ) { $ this -> columns = $ columns ; } else { $ this -> columns [ ] = '*' ; } return $ this ; }
Create a SELECT query statement.

<code>
$queryBuilder->select();
$queryBuilder->select(
[
'column1',
'column2',
...
]
);
</code>

@param array|null $columns

@return static
Create a SELECT query statement .