src/Api/Game.php
public function trophyGroups() : array
    {
        $returnGroups = [];

        $data = [
            'fields' => '@default,trophyTitleSmallIconUrl,trophyGroupSmallIconUrl',
            'iconSize' => 'm',
            'npLanguage' => 'en'
        ];

        if ($this->comparing()) {
            $data['comparedUser'] = $this->user()->onlineId();
        }

        $groups = $this->get(sprintf(Trophy::TROPHY_ENDPOINT . 'trophyTitles/%s/trophyGroups', $this->communicationId()), $data);

        foreach ($groups->trophyGroups as $group) {
            $returnGroups[] = new TrophyGroup($this->client, $group, $this);
        }

        return $returnGroups;
    }
public function trophyGroups() : array
    {
        $returnGroups = [];

        $data = [
            'fields' => '@default,trophyTitleSmallIconUrl,trophyGroupSmallIconUrl',
            'iconSize' => 'm',
            'npLanguage' => 'en'
        ];

        if ($this->comparing()) {
            $data['comparedUser'] = $this->user()->onlineId();
        }

        $groups = $this->get(sprintf(Trophy::TROPHY_ENDPOINT . 'trophyTitles/%s/trophyGroups', $this->communicationId()), $data);

        foreach ($groups->trophyGroups as $group) {
            $returnGroups[] = new TrophyGroup($this->client, $group, $this);
        }

        return $returnGroups;
    }
public function trophyGroups ( ) : array { $ returnGroups = [ ] ; $ data = [ 'fields' => '@default,trophyTitleSmallIconUrl,trophyGroupSmallIconUrl' , 'iconSize' => 'm' , 'npLanguage' => 'en' ] ; if ( $ this -> comparing ( ) ) { $ data [ 'comparedUser' ] = $ this -> user ( ) -> onlineId ( ) ; } $ groups = $ this -> get ( sprintf ( Trophy :: TROPHY_ENDPOINT . 'trophyTitles/%s/trophyGroups' , $ this -> communicationId ( ) ) , $ data ) ; foreach ( $ groups -> trophyGroups as $ group ) { $ returnGroups [ ] = new TrophyGroup ( $ this -> client , $ group , $ this ) ; } return $ returnGroups ; }
Gets the TrophyGroups for this Game.

@return array Array of Api\TrophyGroup
Gets the TrophyGroups for this Game .