public function addCheck(Check $check)
    {
        if ($this->hasCheck($check->getName())) {
            throw SchemaException::tableCheckAlreadyExists($this->getName(), $check->getName());
        }

        $this->checks[$check->getName()] = $check;
    }
public function addCheck(Check $check)
    {
        if ($this->hasCheck($check->getName())) {
            throw SchemaException::tableCheckAlreadyExists($this->getName(), $check->getName());
        }

        $this->checks[$check->getName()] = $check;
    }
public function addCheck ( Check $ check ) { if ( $ this -> hasCheck ( $ check -> getName ( ) ) ) { throw SchemaException :: tableCheckAlreadyExists ( $ this -> getName ( ) , $ check -> getName ( ) ) ; } $ this -> checks [ $ check -> getName ( ) ] = $ check ; }
Adds a check to the table.

@param \Fridge\DBAL\Schema\Check $check The check to add.

@throws \Fridge\DBAL\Exception\SchemaException If the check already exists.
Adds a check to the table .