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

TestBody   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 0
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 setTestFault() 0 4 1
A getResult() 0 4 1
A setTestResult() 0 4 1
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
}