public function getAsset($asset)
    {
        if (!isset($this->assetCache[$asset])) {
            $this->assetCache[$asset] = $this->assetRepository->createAsset($asset);
        }
        return $this->assetCache[$asset];
    }
public function getAsset($asset)
    {
        if (!isset($this->assetCache[$asset])) {
            $this->assetCache[$asset] = $this->assetRepository->createAsset($asset);
        }
        return $this->assetCache[$asset];
    }
public function getAsset ( $ asset ) { if ( ! isset ( $ this -> assetCache [ $ asset ] ) ) { $ this -> assetCache [ $ asset ] = $ this -> assetRepository -> createAsset ( $ asset ) ; } return $ this -> assetCache [ $ asset ] ; }
Return asset file object

@param string $asset
@return File
Return asset file object