LeagueWrap\Api\AbstractApi::attachStaticDataToDto PHP Method

attachStaticDataToDto() protected method

Will attempt to attach any static data to the given dto if the attach static data flag is set.
protected attachStaticDataToDto ( LeagueWrap\Dto\AbstractDto $dto ) : LeagueWrap\Dto\AbstractDto
$dto LeagueWrap\Dto\AbstractDto
return LeagueWrap\Dto\AbstractDto
    protected function attachStaticDataToDto(AbstractDto $dto)
    {
        if ($this->attachStaticData) {
            $dto->loadStaticData($this->staticData);
        }
        return $dto;
    }