Completed
Push — master ( d83f32...d4821e )
by Rémi
04:29
created

HttpStatus::isError()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Twitter\API\REST\Response;
4
5
class HttpStatus
6
{
7
    /** @var int */
8
    private $status;
9
10
    /**
11
     * HttpStatus constructor.
12
     *
13
     * @param int $status
14
     */
15 66
    public function __construct($status)
16
    {
17 66
        $this->status = $status;
18 66
    }
19
20
    /**
21
     * @return bool
22
     */
23 30
    public function isError()
24
    {
25 30
        return $this->status !== 200;
26
    }
27
}
28