Completed
Push — master ( f0cf24...757a85 )
by Dmitrij
9s
created

BaseStatus::setFailedWith()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace HotRodCli\Checkers;
4
5
class BaseStatus
6
{
7
    protected $failedWith = null;
8
9
    protected $status = true;
10
11
    public function setFailedWith(string $className)
12
    {
13
        $this->failedWith = $className;
14
15
        return $this;
16
    }
17
18
    public function getFailedWith()
19
    {
20
        return $this->failedWith;
21
    }
22
23
    public function setStatus($status)
24
    {
25
        $this->status = $status;
26
27
        return $this;
28
    }
29
30
    public function getStatus()
31
    {
32
        return $this->status;
33
    }
34
}
35