src/ResultSet.php
public function first($callable = null)
    {
        if ($callable !== null) {
            $result = $this->statement->fetch(PDO::FETCH_ASSOC);
            $this->statement->closeCursor();
            if (is_array($result)) {
                $result = call_user_func_array($callable, $result);
            }
        } else {
            $result = $this->statement->fetch();
            $this->statement->closeCursor();
        }

        return $result;
    }
public function first($callable = null)
    {
        if ($callable !== null) {
            $result = $this->statement->fetch(PDO::FETCH_ASSOC);
            $this->statement->closeCursor();
            if (is_array($result)) {
                $result = call_user_func_array($callable, $result);
            }
        } else {
            $result = $this->statement->fetch();
            $this->statement->closeCursor();
        }

        return $result;
    }
public function first ( $ callable = null ) { if ( $ callable !== null ) { $ result = $ this -> statement -> fetch ( PDO :: FETCH_ASSOC ) ; $ this -> statement -> closeCursor ( ) ; if ( is_array ( $ result ) ) { $ result = call_user_func_array ( $ callable , $ result ) ; } } else { $ result = $ this -> statement -> fetch ( ) ; $ this -> statement -> closeCursor ( ) ; } return $ result ; }
Fetch first result

@param   callable $callable (optional) Callback function

@return  mixed
Fetch first result