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

BaseStatus   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
dl 0
loc 28
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setFailedWith() 0 5 1
A getFailedWith() 0 3 1
A getStatus() 0 3 1
A setStatus() 0 5 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