| Total Complexity | 5 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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) |
||
| 59 | } |
||
| 60 | } |
||
| 61 |