Completed
Push — master ( baef0b...706633 )
by Randy
02:37
created

TestBody::getResult()   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 0
1
<?php
2
3
namespace Dgame\Soap\Test\Object;
4
5
/**
6
 * Class TestBody
7
 * @package Dgame\Soap\Test\Object
8
 */
9
final class TestBody
10
{
11
    /**
12
     * @var TestFault
13
     */
14
    private $fault;
15
    /**
16
     * @var TestResult
17
     */
18
    private $result;
19
20
    /**
21
     * @return bool
22
     */
23
    public function hasFault(): bool
24
    {
25
        return $this->fault !== null;
26
    }
27
28
    /**
29
     * @return TestFault
30
     */
31
    public function getFault(): TestFault
32
    {
33
        return $this->fault;
34
    }
35
36
    /**
37
     * @param TestFault $fault
38
     */
39
    public function setTestFault(TestFault $fault)
40
    {
41
        $this->fault = $fault;
42
    }
43
44
    /**
45
     * @return TestResult
46
     */
47
    public function getResult(): TestResult
48
    {
49
        return $this->result;
50
    }
51
52
    /**
53
     * @param TestResult $result
54
     */
55
    public function setTestResult(TestResult $result)
56
    {
57
        $this->result = $result;
58
    }
59
}