protected function getCheckSQLDeclaration(Check $check)
    {
        if (!$this->supportChecks()) {
            throw PlatformException::methodNotSupported(__METHOD__);
        }

        return 'CONSTRAINT '.$check->getName().' CHECK ('.$check->getDefinition().')';
    }
protected function getCheckSQLDeclaration(Check $check)
    {
        if (!$this->supportChecks()) {
            throw PlatformException::methodNotSupported(__METHOD__);
        }

        return 'CONSTRAINT '.$check->getName().' CHECK ('.$check->getDefinition().')';
    }
protected function getCheckSQLDeclaration ( Check $ check ) { if ( ! $ this -> supportChecks ( ) ) { throw PlatformException :: methodNotSupported ( __METHOD__ ) ; } return 'CONSTRAINT ' . $ check -> getName ( ) . ' CHECK (' . $ check -> getDefinition ( ) . ')' ; }
Gets the check constraint SQL declaration.

@param \Fridge\DBAL\Schema\Check $check The check constraint.

@throws \Fridge\DBAL\Exception\PlatformException If the platform does not support check.

@return string The check constraint SQL declaration.
Gets the check constraint SQL declaration .