DatabaseField.php
public static function createInt($name, $size, $autoInc=false)
    {
        $field = new DatabaseField($name, self::TYPE_INT);
        $field->m_constraint = $size;
        $field->m_autoIncrementing = $autoInc;
        
        return $field;
    }
public static function createInt($name, $size, $autoInc=false)
    {
        $field = new DatabaseField($name, self::TYPE_INT);
        $field->m_constraint = $size;
        $field->m_autoIncrementing = $autoInc;
        
        return $field;
    }
public static function createInt ( $ name , $ size , $ autoInc = false ) { $ field = new DatabaseField ( $ name , self :: TYPE_INT ) ; $ field -> m_constraint = $ size ; $ field -> m_autoIncrementing = $ autoInc ; return $ field ; }
Creates an integer type field.
@param string $name
@param int $size - the size the int can reach,
e.g. 2 means you can reach the number 99
@param bool $autoInc - auto increment the field
(will mark it as primary key!)
@return \iRAP\TableCreator\DatabaseField
Creates an integer type field .