Column
in package
implements
ColumnInterface
This is gernal class of column.
Tags
Interfaces, Classes, Traits and Enums
- ColumnInterface
- This is a ColumnInterface, all column classes must implmenting this interface
Table of Contents
- $name : string
- $type : TypeInterface
- __construct() : mixed
- construct
- getColumnType() : string
- get column type
- getDataType() : string
- get type name of data
- getName() : string
- get column name
- getType() : TypeInterface
- get type
- validate() : bool
- validate
Properties
$name
private
string
$name
$type
private
TypeInterface
$type
Methods
__construct()
construct
public
__construct(string $name, TypeInterface $type) : mixed
Parameters
- $name : string
-
name of column
- $type : TypeInterface
Return values
mixed —getColumnType()
get column type
public
getColumnType() : string
Return values
string —getDataType()
get type name of data
public
getDataType() : string
Return values
string —getName()
get column name
public
getName() : string
Return values
string —getType()
get type
public
getType() : TypeInterface
Return values
TypeInterface —validate()
validate
public
validate(mixed $value) : bool
Parameters
- $value : mixed