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

Body::setFault()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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
}