Passed
Branch master (7a0b0e)
by Randy
02:56
created

Body   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 1
dl 0
loc 51
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A hasFault() 0 4 1
A getFault() 0 4 1
A setFault() 0 4 1
A getResult() 0 4 1
A setResult() 0 4 1
1
<?php
2
3
namespace Dgame\Soap\Test\Object;
4
5
use Dgame\Soap\Hydrator\Hydratable;
6
7
/**
8
 * Class Body
9
 * @package Dgame\Soap\Test\Object
10
 */
11
final class Body extends Hydratable
12
{
13
    /**
14
     * @var Fault
15
     */
16
    private $fault;
17
    /**
18
     * @var Result
19
     */
20
    private $result;
21
22
    /**
23
     * @return bool
24
     */
25
    public function hasFault(): bool
26
    {
27
        return $this->fault !== null;
28
    }
29
30
    /**
31
     * @return Fault
32
     */
33
    public function getFault(): Fault
34
    {
35
        return $this->fault;
36
    }
37
38
    /**
39
     * @param Fault $fault
40
     */
41
    public function setFault(Fault $fault)
42
    {
43
        $this->fault = $fault;
44
    }
45
46
    /**
47
     * @return Result
48
     */
49
    public function getResult(): Result
50
    {
51
        return $this->result;
52
    }
53
54
    /**
55
     * @param Result $result
56
     */
57
    public function setResult(Result $result)
58
    {
59
        $this->result = $result;
60
    }
61
}