private function addAsset(AssetInterface $asset)
    {
        if ($asset instanceof FileAssetInterface) {
            $this->normalizeAsset($asset);
        }
        $this->assets[] = $asset;
    }
private function addAsset(AssetInterface $asset)
    {
        if ($asset instanceof FileAssetInterface) {
            $this->normalizeAsset($asset);
        }
        $this->assets[] = $asset;
    }
private function addAsset ( AssetInterface $ asset ) { if ( $ asset instanceof FileAssetInterface ) { $ this -> normalizeAsset ( $ asset ) ; } $ this -> assets [ ] = $ asset ; }
Add an file, snippet or widget asset to the render queue.

@param AssetInterface $asset
Add an file snippet or widget asset to the render queue .