RenderStoredEmailTemplateResult::setErrors()   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 RenderStoredEmailTemplateResult
6
{
7
    /**
8
     * @var Error[]
9
     */
10
    protected $errors = null;
11
12
    /**
13
     * @var SingleEmailMessage
14
     */
15
    protected $renderedEmail = null;
16
17
    /**
18
     * @var boolean
19
     */
20
    protected $success = null;
21
22
    /**
23
     * @param boolean $success
24
     */
25
    public function __construct($success = null)
26
    {
27
        $this->success = $success;
28
    }
29
30
    /**
31
     * @return Error[]
32
     */
33
    public function getErrors()
34
    {
35
        return $this->errors;
36
    }
37
38
    /**
39
     * @param Error[] $errors
40
     * @return \SForce\Wsdl\RenderStoredEmailTemplateResult
41
     */
42
    public function setErrors(array $errors = null)
43
    {
44
        $this->errors = $errors;
45
        return $this;
46
    }
47
48
    /**
49
     * @return SingleEmailMessage
50
     */
51
    public function getRenderedEmail()
52
    {
53
        return $this->renderedEmail;
54
    }
55
56
    /**
57
     * @param SingleEmailMessage $renderedEmail
58
     * @return \SForce\Wsdl\RenderStoredEmailTemplateResult
59
     */
60
    public function setRenderedEmail($renderedEmail)
61
    {
62
        $this->renderedEmail = $renderedEmail;
63
        return $this;
64
    }
65
66
    /**
67
     * @return boolean
68
     */
69
    public function getSuccess()
70
    {
71
        return $this->success;
72
    }
73
74
    /**
75
     * @param boolean $success
76
     * @return \SForce\Wsdl\RenderStoredEmailTemplateResult
77
     */
78
    public function setSuccess($success)
79
    {
80
        $this->success = $success;
81
        return $this;
82
    }
83
}
84