public function delete()
    {
        try {
            parent::delete();
            $query = 'DELETE FROM ' . $this->table . ' WHERE userID = ?';
            $stmt = $this->pdo->prepare($query);
            $stmt->execute(array($this->userID));
            return $stmt->rowCount() > 0;
        } catch(\PDOException $e) {
            return false;
        }
    }
public function delete()
    {
        try {
            parent::delete();
            $query = 'DELETE FROM ' . $this->table . ' WHERE userID = ?';
            $stmt = $this->pdo->prepare($query);
            $stmt->execute(array($this->userID));
            return $stmt->rowCount() > 0;
        } catch(\PDOException $e) {
            return false;
        }
    }
public function delete ( ) { try { parent :: delete ( ) ; $ query = 'DELETE FROM ' . $ this -> table . ' WHERE userID = ?' ; $ stmt = $ this -> pdo -> prepare ( $ query ) ; $ stmt -> execute ( array ( $ this -> userID ) ) ; return $ stmt -> rowCount ( ) > 0 ; } catch ( \ PDOException $ e ) { return false ; } }
Delete access token for the current user ID from the database
@todo Add error checking
@return bool
Delete access token for the current user ID from the database