IntResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 19
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A parse() 0 4 1
1
<?php
2
namespace Disque\Command\Response;
3
4
class IntResponse extends BasicTypeResponse implements ResponseInterface
5
{
6
    /**
7
     * Basic data type for this response
8
     *
9
     * @var int
10
     */
11
    protected $type = self::TYPE_INT;
12
13
    /**
14
     * Parse response
15
     *
16
     * @return int Parsed response
17
     */
18
    public function parse()
19
    {
20
        return (int) $this->body;
21
    }
22
}