@@ 93-106 (lines=14) @@ | ||
90 | * |
|
91 | * @throws Exception |
|
92 | */ |
|
93 | public function text($id = null) |
|
94 | { |
|
95 | if ($id) { |
|
96 | $this->setId($id); |
|
97 | } else { |
|
98 | $id = $this->getId(); |
|
99 | } |
|
100 | ||
101 | if (empty($id)) { |
|
102 | throw new Exception(Model::MESSAGE_ID_REQUIRED); |
|
103 | } |
|
104 | ||
105 | return $this->getClient()->getResponse($this->getUrl(__FUNCTION__, array($id)))['data']; |
|
106 | } |
|
107 | ||
108 | /** |
|
109 | * Получение данных для запроса через API |
@@ 143-156 (lines=14) @@ | ||
140 | * |
|
141 | * @throws Exception |
|
142 | */ |
|
143 | public function text($id = null) |
|
144 | { |
|
145 | if ($id) { |
|
146 | $this->setId($id); |
|
147 | } else { |
|
148 | $id = $this->getId(); |
|
149 | } |
|
150 | ||
151 | if (empty($id)) { |
|
152 | throw new Exception(Model::MESSAGE_ID_REQUIRED); |
|
153 | } |
|
154 | ||
155 | return $this->getClient()->getResponse($this->getUrl(__FUNCTION__, array($id)))['data']; |
|
156 | } |
|
157 | ||
158 | /** |
|
159 | * Получение данных для запроса через API |