/** * {@inheritdoc} * * @throws RuntimeException If the current directory has not yet been set. */ public function add(AssetInterface $asset) { if (!$this->innerCollection) { $this->loadCollection(); } return $this->innerCollection->add($asset); }
/** * {@inheritdoc} */ public function add(AssetInterface $asset) { $this->assetCollection->add($asset); }