public function contains(AssetPointer $ap) { foreach ($this->assetPointers as $assetPointer) { if ($assetPointer->getHandle() == $ap->getHandle() && $assetPointer->getType() == $ap->getType()) { return true; } } return false; }
/** * @param AssetPointer $ap * @return bool */ public function contains(AssetPointer $ap) { return isset($this->assetPointers[$ap->getIdentifier()]); }