Total Complexity | 8 |
Total Lines | 117 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class Note extends BaseEntity |
||
18 | { |
||
19 | /** |
||
20 | * @var bool |
||
21 | */ |
||
22 | private $editable; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $attachment; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $service; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | private $phone; |
||
38 | |||
39 | /** |
||
40 | * @param stdClass $data |
||
41 | * |
||
42 | * @return Note |
||
43 | * |
||
44 | * @throws AmoWrapException |
||
45 | */ |
||
46 | public function loadInRaw($data) |
||
47 | { |
||
48 | BaseEntity::loadInRaw($data); |
||
49 | $this->editable = $data->is_editable; |
||
50 | $this->attachment = $data->attachment; |
||
51 | |||
52 | return $this; |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @return bool |
||
57 | */ |
||
58 | public function isEditable() |
||
61 | } |
||
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getAttachment() |
||
67 | { |
||
68 | return $this->attachment; |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * @param string $attachment |
||
73 | * |
||
74 | * @return Note |
||
75 | */ |
||
76 | public function setAttachment($attachment) |
||
77 | { |
||
78 | $this->attachment = $attachment; |
||
79 | |||
80 | return $this; |
||
81 | } |
||
82 | |||
83 | /** |
||
84 | * @param string $service |
||
85 | * |
||
86 | * @return Note |
||
87 | */ |
||
88 | public function setService($service) |
||
89 | { |
||
90 | $this->service = $service; |
||
91 | |||
92 | return $this; |
||
93 | } |
||
94 | |||
95 | /** |
||
96 | * @param $phone |
||
97 | * |
||
98 | * @return $this |
||
99 | */ |
||
100 | public function setPhone($phone) |
||
101 | { |
||
102 | $this->phone = $phone; |
||
103 | |||
104 | return $this; |
||
105 | } |
||
106 | |||
107 | /** |
||
108 | * @param string $userId |
||
109 | * |
||
110 | * @return $this |
||
111 | */ |
||
112 | public function setCreatedUser($userId) |
||
117 | } |
||
118 | |||
119 | /** |
||
120 | * @return array |
||
121 | */ |
||
122 | protected function getExtraRaw() |
||
134 | ), |
||
135 | ); |
||
136 | } |
||
137 | } |