public function decorate(AssetInterface $asset)
    {
        foreach ($this->decorators as $decorator) {
            /**
             * @var AssetDecoratorInterface $decorator
             */
            $asset = $decorator->decorate($asset);
        }

        return $asset;
    }
public function decorate(AssetInterface $asset)
    {
        foreach ($this->decorators as $decorator) {
            /**
             * @var AssetDecoratorInterface $decorator
             */
            $asset = $decorator->decorate($asset);
        }

        return $asset;
    }
public function decorate ( AssetInterface $ asset ) { foreach ( $ this -> decorators as $ decorator ) { /**
             * @var AssetDecoratorInterface $decorator
             */ $ asset = $ decorator -> decorate ( $ asset ) ; } return $ asset ; }
Decorates an asset.

@param AssetInterface $asset
@return AssetInterface
Decorates an asset .