public function add (Asset $asset) : void
    {
        $this->assets[$asset->getAssetPath()] = $asset;
        $this->setAssets($this->assets);
    }
public function add (Asset $asset) : void
    {
        $this->assets[$asset->getAssetPath()] = $asset;
        $this->setAssets($this->assets);
    }
public function add ( Asset $ asset ) : void { $ this -> assets [ $ asset -> getAssetPath ( ) ] = $ asset ; $ this -> setAssets ( $ this -> assets ) ; }
Adds an asset to the cache

@param string $assetPath
Adds an asset to the cache