DatabaseField.php
public static function createDecimal($name, 
                                         $precisionBefore, 
                                         $precisionAfter)
    {
        $field = new DatabaseField($name, self::TYPE_DECIMAL);
        
        $field->m_constraint = intval($precisionBefore) . ',' . 
                               intval($precisionAfter);
        return $field;
    }
public static function createDecimal($name, 
                                         $precisionBefore, 
                                         $precisionAfter)
    {
        $field = new DatabaseField($name, self::TYPE_DECIMAL);
        
        $field->m_constraint = intval($precisionBefore) . ',' . 
                               intval($precisionAfter);
        return $field;
    }
public static function createDecimal ( $ name , $ precisionBefore , $ precisionAfter ) { $ field = new DatabaseField ( $ name , self :: TYPE_DECIMAL ) ; $ field -> m_constraint = intval ( $ precisionBefore ) . ',' . intval ( $ precisionAfter ) ; return $ field ; }
Creates the DECIMAL field type
@param string $name - the name of the field/column in the database.
@param int $precisionBefore - the precision before the decimal place.
eg. 2 means you can reach the number 99
@param int $precisionAfter - precision after the decimal place.
e.g. 2 means you can be accurate to 0.01
@return \iRAP\TableCreator\DatabaseField
Creates the DECIMAL field type