LazyRecord\Schema\Column\AutoIncrementPrimaryKeyColumn::__construct PHP Метод

__construct() публичный Метод

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