DragonBe\Vies\Validator\ValidatorLT::validate PHP 메소드

validate() 공개 메소드

public validate ( string $vatNumber ) : boolean
$vatNumber string
리턴 boolean
    public function validate($vatNumber)
    {
        if (strlen($vatNumber) == 12) {
            return $this->validateTemporaryTaxpayer($vatNumber);
        }
        if (strlen($vatNumber) == 9) {
            return $this->validateLegal($vatNumber);
        }
        return false;
    }