seregazhuk/php-react-memcached

View on GitHub
src/Protocol/Response/DeleteResponse.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace seregazhuk\React\Memcached\Protocol\Response;

use seregazhuk\React\Memcached\Protocol\Parser;

class DeleteResponse extends Response
{
    /**
     * {@inheritdoc}
     */
    public function parse(): bool
    {
        if (trim($this->data) !== Parser::RESPONSE_DELETED) {
            $this->fail();
        }

        return true;
    }
}