| Total Complexity | 7 |
| Total Lines | 77 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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) |
||
| 82 | } |
||
| 83 | } |
||
| 84 |