FaultBody::setFault()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace GoetasWebservices\SoapServices\SoapClient\Envelope\SoapEnvelope12\Messages;
4
5
/**
6
 * Class representing Fault
7
 */
8
class FaultBody
9
{
10
11
    /**
12
     * @property \GoetasWebservices\SoapServices\SoapClient\Envelope\SoapEnvelope12\Parts\Fault $fault
13
     */
14
    private $fault = null;
15
16
    /**
17
     * Gets as fault
18
     *
19
     * @return \GoetasWebservices\SoapServices\SoapClient\Envelope\SoapEnvelope12\Parts\Fault
20
     */
21 3
    public function getFault()
22
    {
23 3
        return $this->fault;
24
    }
25
26
    /**
27
     * Sets a new fault
28
     *
29
     * @param \GoetasWebservices\SoapServices\SoapClient\Envelope\SoapEnvelope12\Parts\Fault $fault
30
     * @return self
31
     */
32 3
    public function setFault(\GoetasWebservices\SoapServices\SoapClient\Envelope\SoapEnvelope12\Parts\Fault $fault)
33
    {
34 3
        $this->fault = $fault;
35 3
        return $this;
36
    }
37
38
39
}
40
41