public function deleteMessageById($id)
    {
        $sql = 'DELETE FROM ' . $this->messageTable . ' WHERE message_id = ?';
        $stmt = $this->getDb()->prepare($sql);
        $stmt->execute(array($id));
        return true;
    }
public function deleteMessageById($id)
    {
        $sql = 'DELETE FROM ' . $this->messageTable . ' WHERE message_id = ?';
        $stmt = $this->getDb()->prepare($sql);
        $stmt->execute(array($id));
        return true;
    }
public function deleteMessageById ( $ id ) { $ sql = 'DELETE FROM ' . $ this -> messageTable . ' WHERE message_id = ?' ; $ stmt = $ this -> getDb ( ) -> prepare ( $ sql ) ; $ stmt -> execute ( array ( $ id ) ) ; return true ; }
Remove message from queue by id

@param int $id
@return bool
Remove message from queue by id