public function setPrecision($precision)
    {
        if (($precision !== null) && (!is_int($precision) || ($precision <= 0))) {
            throw SchemaException::invalidColumnPrecision($this->getName());
        }

        $this->precision = $precision;
    }
public function setPrecision($precision)
    {
        if (($precision !== null) && (!is_int($precision) || ($precision <= 0))) {
            throw SchemaException::invalidColumnPrecision($this->getName());
        }

        $this->precision = $precision;
    }
public function setPrecision ( $ precision ) { if ( ( $ precision !== null ) && ( ! is_int ( $ precision ) || ( $ precision <= 0 ) ) ) { throw SchemaException :: invalidColumnPrecision ( $ this -> getName ( ) ) ; } $ this -> precision = $ precision ; }
Sets the column precision.

@param integer|null $precision The column precision.

@throws \Fridge\DBAL\Exception\SchemaException If the precision is not a positive integer.
Sets the column precision .