SendEmailResult::setSuccess()   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 1
dl 0
loc 4
rs 10
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class SendEmailResult
6
{
7
    /**
8
     * @var SendEmailError[]
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 SendEmailError[]
27
     */
28
    public function getErrors()
29
    {
30
        return $this->errors;
31
    }
32
33
    /**
34
     * @param SendEmailError[] $errors
35
     * @return \SForce\Wsdl\SendEmailResult
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\SendEmailResult
54
     */
55
    public function setSuccess($success)
56
    {
57
        $this->success = $success;
58
        return $this;
59
    }
60
}
61