CreateColumnDefinitionItem extends AbstractCreateDefinitionItem
FinalYes
Syntax tree node for column definitions within "create table" statements.
Holds basic attributes common to all types of columns.
Table of Contents
Properties
- $allowNull : bool
- $autoIncrement : bool
- $columnFormat : string|null
- $columnName : Identifier
- $comment : string|null
- $dataType : AbstractDataType
- $defaultValue : mixed
- $hasDefaultValue : bool
- $index : bool
- $primary : bool
- $reference : ReferenceDefinition|null
- $storage : string|null
- $unique : bool
Methods
- __construct() : mixed
Properties
$allowNull
public
bool
$allowNull
= true
$autoIncrement
public
bool
$autoIncrement
= false
$columnFormat
public
string|null
$columnFormat
= null
$columnName read-only
public
Identifier
$columnName
$comment
public
string|null
$comment
= null
$dataType read-only
public
AbstractDataType
$dataType
$defaultValue
public
mixed
$defaultValue
= null
$hasDefaultValue
public
bool
$hasDefaultValue
= false
$index
public
bool
$index
= false
$primary
public
bool
$primary
= false
$reference
public
ReferenceDefinition|null
$reference
= null
$storage
public
string|null
$storage
= null
$unique
public
bool
$unique
= false
Methods
__construct()
public
__construct(Identifier $columnName, AbstractDataType $dataType) : mixed
Parameters
- $columnName : Identifier
- $dataType : AbstractDataType