/**
  * Gets the incursions endpoint.
  *
  * @return array
  */
 public function getIncursions()
 {
     return $this->client->getEndpoint($this->client->getRootEndpoint()->incursions->href, true, static::INCURSION_COLLECTION_REPRESENTATION);
 }
 /**
  * Gets the sovereignty structures endpoint.
  *
  * @return array
  */
 public function getSovStructures()
 {
     return $this->client->gather($this->client->getRootEndpoint()->sovereignty->structures->href, function (\stdClass $structure) {
         return (int) $structure->structureID;
     }, null, static::SOV_STRUCTURE_COLLECTION_REPRESENTATION, true, 300);
 }
 public function testClient()
 {
     $this->assertTrue($this->client->getRootEndpoint() instanceof stdClass);
     $this->assertTrue($this->client->getCache() instanceof ICache);
     $this->assertTrue($this->client->getOptions($this->client->getRootEndpointUrl()) instanceof stdClass);
 }