protected function getValidator(): ValidatorInterface
    {
        if ($this->validator === null) {
            $this->validator = new GreaterThanValidator(
                $this->getPriority()->getValue()
            );
        }

        return $this->validator;
    }
protected function getValidator(): ValidatorInterface
    {
        if ($this->validator === null) {
            $this->validator = new GreaterThanValidator(
                $this->getPriority()->getValue()
            );
        }

        return $this->validator;
    }
protected function getValidator ( ) : ValidatorInterface { if ( $ this -> validator === null ) { $ this -> validator = new GreaterThanValidator ( $ this -> getPriority ( ) -> getValue ( ) ) ; } return $ this -> validator ; }
Get validator.

@return ValidatorInterface
Get validator .