public function get(array $columns = [])
    {
        if (count($columns) > 0) {
            $this->select($columns);
        }

        // Execution of request.
        $sql = $this->toSql();

        $stmt = $this->connection->prepare($sql);

        $this->bind($stmt, $this->where_data_binding);

        $this->where_data_binding = [];
        $stmt->execute();

        $data = Sanitize::make($stmt->fetchAll());

        $stmt->closeCursor();

        if (!$this->first) {
            return $data;
        }
   
        $current = current($data);
        
        $this->first = false;

        if ($current == false) {
            return null;
        }

        return $current;
    }
public function get(array $columns = [])
    {
        if (count($columns) > 0) {
            $this->select($columns);
        }

        // Execution of request.
        $sql = $this->toSql();

        $stmt = $this->connection->prepare($sql);

        $this->bind($stmt, $this->where_data_binding);

        $this->where_data_binding = [];
        $stmt->execute();

        $data = Sanitize::make($stmt->fetchAll());

        $stmt->closeCursor();

        if (!$this->first) {
            return $data;
        }
   
        $current = current($data);
        
        $this->first = false;

        if ($current == false) {
            return null;
        }

        return $current;
    }
public function get ( array $ columns = [ ] ) { if ( count ( $ columns ) > 0 ) { $ this -> select ( $ columns ) ; } // Execution of request. $ sql = $ this -> toSql ( ) ; $ stmt = $ this -> connection -> prepare ( $ sql ) ; $ this -> bind ( $ stmt , $ this -> where_data_binding ) ; $ this -> where_data_binding = [ ] ; $ stmt -> execute ( ) ; $ data = Sanitize :: make ( $ stmt -> fetchAll ( ) ) ; $ stmt -> closeCursor ( ) ; if ( ! $ this -> first ) { return $ data ; } $ current = current ( $ data ) ; $ this -> first = false ; if ( $ current == false ) { return null ; } return $ current ; }
Get make, only on the select request
If the first selection mode is not active

@param  array $columns
@return array|stdClass
@throws
Get make only on the select request If the first selection mode is not active