public function getMatches($tournament)
    {
        $response = Guzzle::get("tournaments/{$tournament}/matches");

        $matches = [];
        foreach ($response as $match) {
            $matchModel = new Match($match->match);
            $matchModel->tournament_slug = $tournament;
            $matches[] = $matchModel;
        }

        return $matches;
    }
public function getMatches($tournament)
    {
        $response = Guzzle::get("tournaments/{$tournament}/matches");

        $matches = [];
        foreach ($response as $match) {
            $matchModel = new Match($match->match);
            $matchModel->tournament_slug = $tournament;
            $matches[] = $matchModel;
        }

        return $matches;
    }
public function getMatches ( $ tournament ) { $ response = Guzzle :: get ( "tournaments/{$tournament}/matches" ) ; $ matches = [ ] ; foreach ( $ response as $ match ) { $ matchModel = new Match ( $ match -> match ) ; $ matchModel -> tournament_slug = $ tournament ; $ matches [ ] = $ matchModel ; } return $ matches ; }
Retrieve a tournament's match list.

@param  string $tournament
@return array
Retrieve a tournament s match list .