LeagueWrap\Api\Match::match PHP Method

match() public method

Get the match by match id.
public match ( integer $matchId, boolean $includeTimeline = false ) : Match
$matchId integer
$includeTimeline boolean
return Match
    public function match($matchId, $includeTimeline = false)
    {
        if ($includeTimeline) {
            $response = $this->request('match/' . $matchId, ['includeTimeline' => $includeTimeline ? 'true' : 'false']);
        } else {
            $response = $this->request('match/' . $matchId);
        }
        return $this->attachStaticDataToDto(new MatchDto($response));
    }