| @@ 171-185 (lines=15) @@ | ||
| 168 | * |
|
| 169 | * @return array |
|
| 170 | */ |
|
| 171 | public function getFeed() |
|
| 172 | { |
|
| 173 | $requestModel = $this->prepareRequestModel('feed'); |
|
| 174 | $response = $this->requestService->doRequest($requestModel); |
|
| 175 | $responseObject = json_decode($response); |
|
| 176 | ||
| 177 | $feedObjectFactory = new FeedObjectFactory(); |
|
| 178 | $feedObj = []; |
|
| 179 | ||
| 180 | foreach ($responseObject->feed as $feed) { |
|
| 181 | $feedObj[] = $feedObjectFactory->getFeedObject($feed); |
|
| 182 | } |
|
| 183 | ||
| 184 | return $feedObj; |
|
| 185 | } |
|
| 186 | ||
| 187 | /** |
|
| 188 | * A summary of the guild that the character belongs to |
|
| @@ 485-500 (lines=16) @@ | ||
| 482 | * |
|
| 483 | * @return ReputationValueObject[] |
|
| 484 | */ |
|
| 485 | public function getTitles() |
|
| 486 | { |
|
| 487 | $requestModel = $this->prepareRequestModel('titles'); |
|
| 488 | $response = $this->requestService->doRequest($requestModel); |
|
| 489 | $responseObject = json_decode($response); |
|
| 490 | $titles = []; |
|
| 491 | ||
| 492 | foreach ($responseObject->titles as $title) { |
|
| 493 | $titles[] = new TitleValueObject( |
|
| 494 | $title->id, |
|
| 495 | $title->name |
|
| 496 | ); |
|
| 497 | } |
|
| 498 | ||
| 499 | return $titles; |
|
| 500 | } |
|
| 501 | ||
| 502 | /** |
|
| 503 | * @param string $addition |
|