SendEmailError   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 102
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 19
c 1
b 0
f 0
dl 0
loc 102
rs 10
wmc 9

9 Methods

Rating   Name   Duplication   Size   Complexity  
A setStatusCode() 0 4 1
A getFields() 0 3 1
A setMessage() 0 4 1
A __construct() 0 4 1
A getStatusCode() 0 3 1
A getTargetObjectId() 0 3 1
A setFields() 0 4 1
A setTargetObjectId() 0 4 1
A getMessage() 0 3 1
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class SendEmailError
6
{
7
    /**
8
     * @var string[]
9
     */
10
    protected $fields = null;
11
12
    /**
13
     * @var string
14
     */
15
    protected $message = null;
16
17
    /**
18
     * @var StatusCode
19
     */
20
    protected $statusCode = null;
21
22
    /**
23
     * @var ID
24
     */
25
    protected $targetObjectId = null;
26
27
    /**
28
     * @param string $message
29
     * @param StatusCode $statusCode
30
     */
31
    public function __construct($message = null, $statusCode = null)
32
    {
33
        $this->message = $message;
34
        $this->statusCode = $statusCode;
35
    }
36
37
    /**
38
     * @return string[]
39
     */
40
    public function getFields()
41
    {
42
        return $this->fields;
43
    }
44
45
    /**
46
     * @param string[] $fields
47
     * @return \SForce\Wsdl\SendEmailError
48
     */
49
    public function setFields(array $fields = null)
50
    {
51
        $this->fields = $fields;
52
        return $this;
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getMessage()
59
    {
60
        return $this->message;
61
    }
62
63
    /**
64
     * @param string $message
65
     * @return \SForce\Wsdl\SendEmailError
66
     */
67
    public function setMessage($message)
68
    {
69
        $this->message = $message;
70
        return $this;
71
    }
72
73
    /**
74
     * @return StatusCode
75
     */
76
    public function getStatusCode()
77
    {
78
        return $this->statusCode;
79
    }
80
81
    /**
82
     * @param StatusCode $statusCode
83
     * @return \SForce\Wsdl\SendEmailError
84
     */
85
    public function setStatusCode($statusCode)
86
    {
87
        $this->statusCode = $statusCode;
88
        return $this;
89
    }
90
91
    /**
92
     * @return ID
93
     */
94
    public function getTargetObjectId()
95
    {
96
        return $this->targetObjectId;
97
    }
98
99
    /**
100
     * @param ID $targetObjectId
101
     * @return \SForce\Wsdl\SendEmailError
102
     */
103
    public function setTargetObjectId($targetObjectId)
104
    {
105
        $this->targetObjectId = $targetObjectId;
106
        return $this;
107
    }
108
}
109