ExtendedErrorDetails::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class ExtendedErrorDetails
6
{
7
    /**
8
     * @var ExtendedErrorCode
9
     */
10
    protected $extendedErrorCode = null;
11
12
    /**
13
     * @var string
14
     */
15
    protected $any = null;
16
17
    /**
18
     * @param ExtendedErrorCode $extendedErrorCode
19
     * @param string $any
20
     */
21
    public function __construct($extendedErrorCode = null, $any = null)
22
    {
23
        $this->extendedErrorCode = $extendedErrorCode;
24
        $this->any = $any;
25
    }
26
27
    /**
28
     * @return ExtendedErrorCode
29
     */
30
    public function getExtendedErrorCode()
31
    {
32
        return $this->extendedErrorCode;
33
    }
34
35
    /**
36
     * @param ExtendedErrorCode $extendedErrorCode
37
     * @return \SForce\Wsdl\ExtendedErrorDetails
38
     */
39
    public function setExtendedErrorCode($extendedErrorCode)
40
    {
41
        $this->extendedErrorCode = $extendedErrorCode;
42
        return $this;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getAny()
49
    {
50
        return $this->any;
51
    }
52
53
    /**
54
     * @param string $any
55
     * @return \SForce\Wsdl\ExtendedErrorDetails
56
     */
57
    public function setAny($any)
58
    {
59
        $this->any = $any;
60
        return $this;
61
    }
62
}
63