private function validateAssociatedStoreIdentifiers(Pass $pass) { //appLaunchURL $associatedStoreIdentifiers = $pass->getAssociatedStoreIdentifiers(); if (null !== $pass->getAppLaunchURL() && count($associatedStoreIdentifiers) == 0) { $this->addError(self::ASSOCIATED_STORE_IDENTIFIER_REQUIRED); } foreach ($associatedStoreIdentifiers as $associatedStoreIdentifier) { if (!is_int($associatedStoreIdentifier)) { $this->addError(self::ASSOCIATED_STORE_IDENTIFIER_INVALID); return; } } }