private function validateWebServiceKeys(Pass $pass) { if (null === $pass->getWebServiceURL()) { return; } if (strpos($pass->getWebServiceURL(), 'http') !== 0) { $this->addError(self::WEB_SERVICE_URL_INVALID); } if ($this->isBlankOrNull($pass->getAuthenticationToken())) { $this->addError(self::WEB_SERVICE_AUTHENTICATION_TOKEN_REQUIRED); } if (strlen($pass->getAuthenticationToken()) < 16) { $this->addError(self::WEB_SERVICE_AUTHENTICATION_TOKEN_INVALID); } }