| @@ 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__, [$id]))['data']; |
|
| 106 | } |
|
| 107 | ||
| 108 | /** |
|
| 109 | * Получение данных для запроса через API |
|
| @@ 138-151 (lines=14) @@ | ||
| 135 | * |
|
| 136 | * @throws Exception |
|
| 137 | */ |
|
| 138 | public function text($id = null) |
|
| 139 | { |
|
| 140 | if ($id) { |
|
| 141 | $this->setId($id); |
|
| 142 | } else { |
|
| 143 | $id = $this->getId(); |
|
| 144 | } |
|
| 145 | ||
| 146 | if (empty($id)) { |
|
| 147 | throw new Exception(Model::MESSAGE_ID_REQUIRED); |
|
| 148 | } |
|
| 149 | ||
| 150 | return $this->getClient()->getResponse($this->getUrl(__FUNCTION__, [$id]))['data']; |
|
| 151 | } |
|
| 152 | ||
| 153 | /** |
|
| 154 | * Получение данных для запроса через API |
|