QuickActionTemplateResult::setErrors()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class QuickActionTemplateResult
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $contextId = null;
11
12
    /**
13
     * @var sObject
14
     */
15
    protected $defaultValueFormulas = null;
16
17
    /**
18
     * @var sObject
19
     */
20
    protected $defaultValues = null;
21
22
    /**
23
     * @var Error[]
24
     */
25
    protected $errors = null;
26
27
    /**
28
     * @var boolean
29
     */
30
    protected $success = null;
31
32
    /**
33
     * @param boolean $success
34
     */
35
    public function __construct($success = null)
36
    {
37
        $this->success = $success;
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function getContextId()
44
    {
45
        return $this->contextId;
46
    }
47
48
    /**
49
     * @param string $contextId
50
     * @return \SForce\Wsdl\QuickActionTemplateResult
51
     */
52
    public function setContextId($contextId)
53
    {
54
        $this->contextId = $contextId;
55
        return $this;
56
    }
57
58
    /**
59
     * @return sObject
60
     */
61
    public function getDefaultValueFormulas()
62
    {
63
        return $this->defaultValueFormulas;
64
    }
65
66
    /**
67
     * @param sObject $defaultValueFormulas
68
     * @return \SForce\Wsdl\QuickActionTemplateResult
69
     */
70
    public function setDefaultValueFormulas($defaultValueFormulas)
71
    {
72
        $this->defaultValueFormulas = $defaultValueFormulas;
73
        return $this;
74
    }
75
76
    /**
77
     * @return sObject
78
     */
79
    public function getDefaultValues()
80
    {
81
        return $this->defaultValues;
82
    }
83
84
    /**
85
     * @param sObject $defaultValues
86
     * @return \SForce\Wsdl\QuickActionTemplateResult
87
     */
88
    public function setDefaultValues($defaultValues)
89
    {
90
        $this->defaultValues = $defaultValues;
91
        return $this;
92
    }
93
94
    /**
95
     * @return Error[]
96
     */
97
    public function getErrors()
98
    {
99
        return $this->errors;
100
    }
101
102
    /**
103
     * @param Error[] $errors
104
     * @return \SForce\Wsdl\QuickActionTemplateResult
105
     */
106
    public function setErrors(array $errors = null)
107
    {
108
        $this->errors = $errors;
109
        return $this;
110
    }
111
112
    /**
113
     * @return boolean
114
     */
115
    public function getSuccess()
116
    {
117
        return $this->success;
118
    }
119
120
    /**
121
     * @param boolean $success
122
     * @return \SForce\Wsdl\QuickActionTemplateResult
123
     */
124
    public function setSuccess($success)
125
    {
126
        $this->success = $success;
127
        return $this;
128
    }
129
}
130