LeagueWrap\Api\AbstractApi::attachResponse PHP Method

attachResponse() protected method

Attempts to attach the response to a summoner object.
protected attachResponse ( mixed $identity, mixed $response, string $key ) : boolean
$identity mixed
$response mixed
$key string
return boolean
    protected function attachResponse($identity, $response, $key)
    {
        if ($identity instanceof Summoner) {
            $identity->set($key, $response);
            return true;
        }
        return false;
    }