| @@ 18-25 (lines=8) @@ | ||
| 15 | protected $parameters = null; |
|
| 16 | ||
| 17 | ||
| 18 | public function __construct(WowApiRequest $api, $locale = null) |
|
| 19 | { |
|
| 20 | $this->apiRequest = $api; |
|
| 21 | if ($locale !== null) { |
|
| 22 | $this->apiRequest->setLocale($locale); |
|
| 23 | } |
|
| 24 | $this->loadInformation(); |
|
| 25 | } |
|
| 26 | ||
| 27 | public function setApiRequest(WowApiRequest $apiRequest) |
|
| 28 | { |
|
| @@ 9-17 (lines=9) @@ | ||
| 6 | { |
|
| 7 | protected $itemId; |
|
| 8 | ||
| 9 | public function __construct(WowApiRequest $api, $itemId, $locale = null) |
|
| 10 | { |
|
| 11 | $this->apiRequest = $api; |
|
| 12 | $this->itemId = $itemId; |
|
| 13 | if ($locale !== null) { |
|
| 14 | $this->apiRequest->setLocale($locale); |
|
| 15 | } |
|
| 16 | $this->loadInformation(); |
|
| 17 | } |
|
| 18 | ||
| 19 | public function getRessource() |
|
| 20 | { |
|