TouchResponse   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A parse() 0 7 2
1
<?php
2
3
namespace seregazhuk\React\Memcached\Protocol\Response;
4
5
use seregazhuk\React\Memcached\Exception\FailedCommandException;
6
use seregazhuk\React\Memcached\Protocol\Parser;
7
8
class TouchResponse extends Response
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function parse()
14
    {
15
        if (trim($this->data) !== Parser::RESPONSE_TOUCHED) {
16
            $this->fail();
17
        }
18
19
        return true;
20
    }
21
}
22