public function getOne($field = null)
    {
        $row = $this->statement->fetch(PDO::FETCH_ASSOC);

        return null === $field ? $row : $row[$field];
    }
public function getOne($field = null)
    {
        $row = $this->statement->fetch(PDO::FETCH_ASSOC);

        return null === $field ? $row : $row[$field];
    }
public function getOne ( $ field = null ) { $ row = $ this -> statement -> fetch ( PDO :: FETCH_ASSOC ) ; return null === $ field ? $ row : $ row [ $ field ] ; }
Get one row to PDOStatement.

@param string|null $field
@return array|bool
Get one row to PDOStatement .