getService() публичный Метод

public getService ( $name ) : null | Service
$name
Результат null | Service
Пример #1
0
 public function testGetTranslation()
 {
     $content = json_decode(file_get_contents('tests/Json/shardstatus.euw.json'), true);
     $shardStatus = new ShardStatus($content);
     $service = $shardStatus->getService("Game");
     $incident = $service->incidents[0];
     $message = $incident->updates[0];
     $translation = $message->getTranslationByLocale('de_DE');
     $this->assertTrue($translation instanceof \LeagueWrap\Dto\Translation);
     $this->assertTrue($translation->locale == "de_DE");
 }