LeadConvertResult::getLeadId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class LeadConvertResult
6
{
7
    /**
8
     * @var ID
9
     */
10
    protected $accountId = null;
11
12
    /**
13
     * @var ID
14
     */
15
    protected $contactId = null;
16
17
    /**
18
     * @var Error[]
19
     */
20
    protected $errors = null;
21
22
    /**
23
     * @var ID
24
     */
25
    protected $leadId = null;
26
27
    /**
28
     * @var ID
29
     */
30
    protected $opportunityId = null;
31
32
    /**
33
     * @var boolean
34
     */
35
    protected $success = null;
36
37
    /**
38
     * @param boolean $success
39
     */
40
    public function __construct($success = null)
41
    {
42
        $this->success = $success;
43
    }
44
45
    /**
46
     * @return ID
47
     */
48
    public function getAccountId()
49
    {
50
        return $this->accountId;
51
    }
52
53
    /**
54
     * @param ID $accountId
55
     * @return \SForce\Wsdl\LeadConvertResult
56
     */
57
    public function setAccountId($accountId)
58
    {
59
        $this->accountId = $accountId;
60
        return $this;
61
    }
62
63
    /**
64
     * @return ID
65
     */
66
    public function getContactId()
67
    {
68
        return $this->contactId;
69
    }
70
71
    /**
72
     * @param ID $contactId
73
     * @return \SForce\Wsdl\LeadConvertResult
74
     */
75
    public function setContactId($contactId)
76
    {
77
        $this->contactId = $contactId;
78
        return $this;
79
    }
80
81
    /**
82
     * @return Error[]
83
     */
84
    public function getErrors()
85
    {
86
        return $this->errors;
87
    }
88
89
    /**
90
     * @param Error[] $errors
91
     * @return \SForce\Wsdl\LeadConvertResult
92
     */
93
    public function setErrors(array $errors = null)
94
    {
95
        $this->errors = $errors;
96
        return $this;
97
    }
98
99
    /**
100
     * @return ID
101
     */
102
    public function getLeadId()
103
    {
104
        return $this->leadId;
105
    }
106
107
    /**
108
     * @param ID $leadId
109
     * @return \SForce\Wsdl\LeadConvertResult
110
     */
111
    public function setLeadId($leadId)
112
    {
113
        $this->leadId = $leadId;
114
        return $this;
115
    }
116
117
    /**
118
     * @return ID
119
     */
120
    public function getOpportunityId()
121
    {
122
        return $this->opportunityId;
123
    }
124
125
    /**
126
     * @param ID $opportunityId
127
     * @return \SForce\Wsdl\LeadConvertResult
128
     */
129
    public function setOpportunityId($opportunityId)
130
    {
131
        $this->opportunityId = $opportunityId;
132
        return $this;
133
    }
134
135
    /**
136
     * @return boolean
137
     */
138
    public function getSuccess()
139
    {
140
        return $this->success;
141
    }
142
143
    /**
144
     * @param boolean $success
145
     * @return \SForce\Wsdl\LeadConvertResult
146
     */
147
    public function setSuccess($success)
148
    {
149
        $this->success = $success;
150
        return $this;
151
    }
152
}
153