code: public function addConstraint(ConstraintInterface $constraint)
      {
          $constraint->setTable($this);
          $this->constraints[] = $constraint;
  
          return $this;
      }
docs: Add contraint to table.
  
  @param ConstraintInterface $constraint Instance of class implements ConstraintInterface.
  
  @return Table Table instance.