src/Assets/AssetUrlHandler.php
protected function getAsset()
    {
        $asset = AssetCatalogueProvider::getAsset($this->token);

        if ($this->assetCategory != $asset->getProviderData()["category"]) {
            throw new AssetExposureException($this->token);
        }

        return $asset;
    }
protected function getAsset()
    {
        $asset = AssetCatalogueProvider::getAsset($this->token);

        if ($this->assetCategory != $asset->getProviderData()["category"]) {
            throw new AssetExposureException($this->token);
        }

        return $asset;
    }
protected function getAsset ( ) { $ asset = AssetCatalogueProvider :: getAsset ( $ this -> token ) ; if ( $ this -> assetCategory != $ asset -> getProviderData ( ) [ "category" ] ) { throw new AssetExposureException ( $ this -> token ) ; } return $ asset ; }
Gets the asset for the current URL

@return Asset
@throws AssetExposureException
Gets the asset for the current URL