src/Rentgen/Database/Table.php
public function addConstraint(ConstraintInterface $constraint)
    {
        $constraint->setTable($this);
        $this->constraints[] = $constraint;

        return $this;
    }
public function addConstraint(ConstraintInterface $constraint)
    {
        $constraint->setTable($this);
        $this->constraints[] = $constraint;

        return $this;
    }
public function addConstraint ( ConstraintInterface $ constraint ) { $ constraint -> setTable ( $ this ) ; $ this -> constraints [ ] = $ constraint ; return $ this ; }
Add contraint to table.

@param ConstraintInterface $constraint Instance of class implements ConstraintInterface.

@return Table Table instance.
Add contraint to table .