InvalidateSessionsResult   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 54
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getErrors() 0 3 1
A setErrors() 0 4 1
A setSuccess() 0 4 1
A getSuccess() 0 3 1
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class InvalidateSessionsResult
6
{
7
    /**
8
     * @var Error[]
9
     */
10
    protected $errors = null;
11
12
    /**
13
     * @var boolean
14
     */
15
    protected $success = null;
16
17
    /**
18
     * @param boolean $success
19
     */
20
    public function __construct($success = null)
21
    {
22
        $this->success = $success;
23
    }
24
25
    /**
26
     * @return Error[]
27
     */
28
    public function getErrors()
29
    {
30
        return $this->errors;
31
    }
32
33
    /**
34
     * @param Error[] $errors
35
     * @return \SForce\Wsdl\InvalidateSessionsResult
36
     */
37
    public function setErrors(array $errors = null)
38
    {
39
        $this->errors = $errors;
40
        return $this;
41
    }
42
43
    /**
44
     * @return boolean
45
     */
46
    public function getSuccess()
47
    {
48
        return $this->success;
49
    }
50
51
    /**
52
     * @param boolean $success
53
     * @return \SForce\Wsdl\InvalidateSessionsResult
54
     */
55
    public function setSuccess($success)
56
    {
57
        $this->success = $success;
58
        return $this;
59
    }
60
}
61