/** * @param UIAsset $uiAsset */ public function addUIAsset($uiAsset) { $location = $uiAsset->getAbsoluteLocation(); if (!$this->assetAlreadyInCatalog($location)) { $this->existingAssetLocations[] = $location; $this->uiAssets[] = $uiAsset; } }
/** * @param UIAsset $uiAsset * @return boolean */ private function assetAlreadyInCatalog($uiAsset) { foreach ($this->uiAssets as $existingAsset) { if ($uiAsset->getAbsoluteLocation() == $existingAsset->getAbsoluteLocation()) { return true; } } return false; }
private function writeContentToFile() { $this->mergedAsset->writeContent($this->mergedContent); }