public function addConstraint(Constraint $constraint) : void
    {
        $constraint->setValidator($this);
        array_push($this->constraints, $constraint);
    }
public function addConstraint(Constraint $constraint) : void
    {
        $constraint->setValidator($this);
        array_push($this->constraints, $constraint);
    }
public function addConstraint ( Constraint $ constraint ) : void { $ constraint -> setValidator ( $ this ) ; array_push ( $ this -> constraints , $ constraint ) ; }
Add a constraint to the validator

@param Constraint $constraint
Add a constraint to the validator