LazyRecord\Schema\Column\AutoIncrementPrimaryKeyColumn::__construct PHP Method

__construct() public method

public __construct ( DeclareSchema $schema, $name = 'id', $type = 'integer' )
$schema LazyRecord\Schema\DeclareSchema
    public function __construct(DeclareSchema $schema, $name = 'id', $type = 'integer')
    {
        parent::__construct($schema, $name);
        $this->type($type)->isa('int')->notNull()->unsigned()->primary()->autoIncrement()->renderAs('HiddenInput');
    }
AutoIncrementPrimaryKeyColumn