public function getRow()
    {
        $stmt = $this->execute();

        if ($stmt instanceof \Generator) {
            return $stmt->current();
        }

        return $stmt->fetch();
    }
public function getRow()
    {
        $stmt = $this->execute();

        if ($stmt instanceof \Generator) {
            return $stmt->current();
        }

        return $stmt->fetch();
    }
public function getRow ( ) { $ stmt = $ this -> execute ( ) ; if ( $ stmt instanceof \ Generator ) { return $ stmt -> current ( ) ; } return $ stmt -> fetch ( ) ; }
Executes expression and returns first row of data from result-set as a hash.

@return array
Executes expression and returns first row of data from result - set as a hash .