1 | <?php |
||
13 | class AccountService implements AccountServiceInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var \linkprofit\AmoCRM\RequestHandler |
||
17 | */ |
||
18 | protected $request; |
||
19 | |||
20 | /** |
||
21 | * ServiceInterface constructor. |
||
22 | * |
||
23 | * @param RequestHandler $requestHandler |
||
24 | */ |
||
25 | 3 | public function __construct(RequestHandler $requestHandler) |
|
29 | |||
30 | /** |
||
31 | * @return bool|array |
||
32 | */ |
||
33 | 1 | public function getAllArray() |
|
39 | |||
40 | /** |
||
41 | * @return array|bool|\linkprofit\AmoCRM\entities\Account |
||
42 | */ |
||
43 | 1 | public function getAccount() |
|
49 | |||
50 | /** |
||
51 | * TODO |
||
52 | * |
||
53 | * @return \linkprofit\AmoCRM\entities\CustomField[] |
||
54 | */ |
||
55 | public function getCustomFields(){} |
||
56 | |||
57 | /** |
||
58 | * TODO |
||
59 | * |
||
60 | * @return \linkprofit\AmoCRM\entities\User[] |
||
61 | */ |
||
62 | public function getUsers(){} |
||
63 | |||
64 | /** |
||
65 | * TODO |
||
66 | * |
||
67 | * @return \linkprofit\AmoCRM\entities\Pipeline[] |
||
68 | */ |
||
69 | public function getPipelines(){} |
||
70 | |||
71 | /** |
||
72 | * TODO |
||
73 | * |
||
74 | * @return \linkprofit\AmoCRM\entities\Group[] |
||
75 | */ |
||
76 | public function getGroups(){} |
||
77 | |||
78 | /** |
||
79 | * TODO |
||
80 | * |
||
81 | * @return \linkprofit\AmoCRM\entities\NoteTypes[] |
||
82 | */ |
||
83 | public function getNoteTypes(){} |
||
84 | |||
85 | /** |
||
86 | * @return \linkprofit\AmoCRM\entities\TaskType[] |
||
87 | */ |
||
88 | 1 | public function getTaskTypes() |
|
94 | |||
95 | /** |
||
96 | * @return string |
||
97 | */ |
||
98 | 3 | protected function getLink() |
|
102 | |||
103 | /** |
||
104 | * @param array $with |
||
105 | */ |
||
106 | 3 | private function send($with = ['with' => 'custom_fields,users,pipelines,groups,note_types,task_types']) |
|
111 | |||
112 | /** |
||
113 | * @param $array |
||
114 | * |
||
115 | * @return Account |
||
116 | */ |
||
117 | 1 | private function parseArrayToAccountEntity($array) |
|
124 | |||
125 | /** |
||
126 | * @param array $array |
||
127 | * |
||
128 | * @return array |
||
129 | */ |
||
130 | 1 | public function parseArrayToTaskTypeEntities(array $array) |
|
142 | } |