RenderStoredEmailTemplateResult   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 77
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 14
c 1
b 0
f 0
dl 0
loc 77
rs 10
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A setSuccess() 0 4 1
A getSuccess() 0 3 1
A __construct() 0 3 1
A getRenderedEmail() 0 3 1
A getErrors() 0 3 1
A setRenderedEmail() 0 4 1
A setErrors() 0 4 1
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