| @@ 111-124 (lines=14) @@ | ||
| 108 | * |
|
| 109 | * @throws Exception |
|
| 110 | */ |
|
| 111 | public function text($id = null) |
|
| 112 | { |
|
| 113 | if ($id) { |
|
| 114 | $this->setId($id); |
|
| 115 | } else { |
|
| 116 | $id = $this->getId(); |
|
| 117 | } |
|
| 118 | ||
| 119 | if (empty($id)) { |
|
| 120 | throw new Exception(Model::MESSAGE_ID_REQUIRED); |
|
| 121 | } |
|
| 122 | ||
| 123 | return $this->getClient()->getResponse($this->getUrl(__FUNCTION__, [$id]))['data']; |
|
| 124 | } |
|
| 125 | } |
|
| @@ 155-168 (lines=14) @@ | ||
| 152 | * |
|
| 153 | * @throws Exception |
|
| 154 | */ |
|
| 155 | public function text($id = null) |
|
| 156 | { |
|
| 157 | if ($id) { |
|
| 158 | $this->setId($id); |
|
| 159 | } else { |
|
| 160 | $id = $this->getId(); |
|
| 161 | } |
|
| 162 | ||
| 163 | if (empty($id)) { |
|
| 164 | throw new Exception(Model::MESSAGE_ID_REQUIRED); |
|
| 165 | } |
|
| 166 | ||
| 167 | return $this->getClient()->getResponse($this->getUrl(__FUNCTION__, [$id]))['data']; |
|
| 168 | } |
|
| 169 | } |
|