public function setValidator(string $validator_class_name, array $constraints = []) : self
    {
        $this->validator = $validator_class_name;
        $this->constraints = $constraints;
        return $this;
    }