Pricebook::setDescription()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Xsolve\SalesforceClient\Model;
4
5
use JMS\Serializer\Annotation as JMS;
6
use Xsolve\SalesforceClient\Enum\AbstractSObjectType;
7
use Xsolve\SalesforceClient\Enum\SObjectType;
8
9
class Pricebook extends AbstractSObject
10
{
11
    /**
12
     * @var string|null
13
     * @JMS\Type("string")
14
     * @JMS\Groups({"update", "create"})
15
     */
16
    protected $description;
17
18
    /**
19
     * @var bool|null
20
     * @JMS\Type("boolean")
21
     * @JMS\Groups({"update", "create"})
22
     */
23
    protected $isActive;
24
25
    /**
26
     * @var bool|null
27
     * @JMS\Type("boolean")
28
     */
29
    protected $isDeleted;
30
31
    /**
32
     * @var bool|null
33
     * @JMS\Type("boolean")
34
     */
35
    protected $isStandard;
36
37
    /**
38
     * @var string|null
39
     * @JMS\Type("string")
40
     * @JMS\Groups({"update", "create"})
41
     */
42
    protected $name;
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public static function getSObjectName(): AbstractSObjectType
48
    {
49
        return SObjectType::PRICEBOOK();
50
    }
51
52
    /**
53
     * @return string|null
54
     */
55
    public function getDescription()
56
    {
57
        return $this->description;
58
    }
59
60
    /**
61
     * @return bool|null
62
     */
63
    public function isActive()
64
    {
65
        return $this->isActive;
66
    }
67
68
    /**
69
     * @return bool|null
70
     */
71
    public function isDeleted()
72
    {
73
        return $this->isDeleted;
74
    }
75
76
    /**
77
     * @return bool|null
78
     */
79
    public function isStandard()
80
    {
81
        return $this->isStandard;
82
    }
83
84
    /**
85
     * @return string|null
86
     */
87
    public function getName()
88
    {
89
        return $this->name;
90
    }
91
92
    public function setDescription(string $description = null): self
93
    {
94
        $this->description = $description;
95
96
        return $this;
97
    }
98
99
    public function setActive(bool $isActive): self
100
    {
101
        $this->isActive = $isActive;
102
103
        return $this;
104
    }
105
106
    public function setName(string $name): self
107
    {
108
        $this->name = $name;
109
110
        return $this;
111
    }
112
}
113