source/Core/InputValidator.php
public function getCompanyVatInValidator($country)
    {
        if (is_null($this->_oCompanyVatInValidator)) {
            /** @var \OxidEsales\Eshop\Core\CompanyVatInValidator $vatInValidator */
            $vatInValidator = oxNew('oxCompanyVatInValidator', $country);

            /** @var \OxidEsales\Eshop\Core\CompanyVatInCountryChecker $validator */
            $validator = oxNew(\OxidEsales\Eshop\Core\CompanyVatInCountryChecker::class);

            $vatInValidator->addChecker($validator);

            /** @var \OxidEsales\Eshop\Core\OnlineVatIdCheck $onlineValidator */
            if (!\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam("blVatIdCheckDisabled")) {
                $onlineValidator = oxNew(\OxidEsales\Eshop\Core\OnlineVatIdCheck::class);
                $vatInValidator->addChecker($onlineValidator);
            }

            $this->setCompanyVatInValidator($vatInValidator);
        }

        return $this->_oCompanyVatInValidator;
    }
public function getCompanyVatInValidator($country)
    {
        if (is_null($this->_oCompanyVatInValidator)) {
            /** @var \OxidEsales\Eshop\Core\CompanyVatInValidator $vatInValidator */
            $vatInValidator = oxNew('oxCompanyVatInValidator', $country);

            /** @var \OxidEsales\Eshop\Core\CompanyVatInCountryChecker $validator */
            $validator = oxNew(\OxidEsales\Eshop\Core\CompanyVatInCountryChecker::class);

            $vatInValidator->addChecker($validator);

            /** @var \OxidEsales\Eshop\Core\OnlineVatIdCheck $onlineValidator */
            if (!\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam("blVatIdCheckDisabled")) {
                $onlineValidator = oxNew(\OxidEsales\Eshop\Core\OnlineVatIdCheck::class);
                $vatInValidator->addChecker($onlineValidator);
            }

            $this->setCompanyVatInValidator($vatInValidator);
        }

        return $this->_oCompanyVatInValidator;
    }
public function getCompanyVatInValidator ( $ country ) { if ( is_null ( $ this -> _oCompanyVatInValidator ) ) { /** @var \OxidEsales\Eshop\Core\CompanyVatInValidator $vatInValidator */ $ vatInValidator = oxNew ( 'oxCompanyVatInValidator' , $ country ) ; /** @var \OxidEsales\Eshop\Core\CompanyVatInCountryChecker $validator */ $ validator = oxNew ( \ OxidEsales \ Eshop \ Core \ CompanyVatInCountryChecker :: class ) ; $ vatInValidator -> addChecker ( $ validator ) ; /** @var \OxidEsales\Eshop\Core\OnlineVatIdCheck $onlineValidator */ if ( ! \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( "blVatIdCheckDisabled" ) ) { $ onlineValidator = oxNew ( \ OxidEsales \ Eshop \ Core \ OnlineVatIdCheck :: class ) ; $ vatInValidator -> addChecker ( $ onlineValidator ) ; } $ this -> setCompanyVatInValidator ( $ vatInValidator ) ; } return $ this -> _oCompanyVatInValidator ; }
Return VAT IN validator.

@param \OxidEsales\Eshop\Application\Model\Country $country Country according which VAT id should be checked.

@return \OxidEsales\Eshop\Core\CompanyVatInValidator
Return VAT IN validator .