| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php namespace GameScan\WoW\Entity; |
||
| 17 | public function __construct(WowApiRequest $api, $realmName, $characterName, $locale = null, array $scope = null) |
||
| 18 | { |
||
| 19 | $this->apiRequest = $api; |
||
| 20 | $this->realmName = $realmName; |
||
| 21 | $this->characterName = $characterName; |
||
| 22 | if ($locale !== null) { |
||
| 23 | $this->apiRequest->setLocale($locale); |
||
| 24 | } |
||
| 25 | if ($scope !== null) { |
||
| 26 | foreach ($scope as $field) { |
||
| 27 | $this->addField($field); |
||
| 28 | } |
||
| 29 | } |
||
| 30 | $this->loadInformation(); |
||
| 31 | } |
||
| 32 | |||
| 38 |