public function getAsset(string $assetId, string $locale = null): Asset
    {
        $locale = $locale ?: $this->defaultLocale;

        /** @var Asset $asset */
        $asset = $this->requestWithCache(
            '/spaces/'.$this->spaceId.'/environments/'.$this->environmentId.'/assets/'.$assetId,
            ['locale' => $locale],
            'Asset',
            $assetId,
            $this->getLocaleForCacheKey($locale)
        );

        return $asset;
    }
public function getAsset(string $assetId, string $locale = null): Asset
    {
        $locale = $locale ?: $this->defaultLocale;

        
        $asset = $this->requestWithCache(
            '/spaces/'.$this->spaceId.'/environments/'.$this->environmentId.'/assets/'.$assetId,
            ['locale' => $locale],
            'Asset',
            $assetId,
            $this->getLocaleForCacheKey($locale)
        );

        return $asset;
    }
public function getAsset ( string $ assetId , string $ locale = null ) : Asset { $ locale = $ locale ? : $ this -> defaultLocale ; /** @var Asset $asset */ $ asset = $ this -> requestWithCache ( '/spaces/' . $ this -> spaceId . '/environments/' . $ this -> environmentId . '/assets/' . $ assetId , [ 'locale' => $ locale ] , 'Asset' , $ assetId , $ this -> getLocaleForCacheKey ( $ locale ) ) ; return $ asset ; }
{@inheritdoc}
{