tflori/orm

just another orm...

View the Project on GitHub tflori/orm

Build Status Test Coverage Maintainability Latest Stable Version Total Downloads

» API Reference » ORM\Dbal\Column

ORM\Dbal\Column

Table of Contents

Abstract

Describes a column of a database table

Methods

ORM\Dbal\Column::__construct

public function __construct(\ORM\Dbal\Dbal $dbal, array $columnDefinition)
Column constructor.
Parameters
Parameter Type Description
$dbal ORM\Dbal\Dbal  
$columnDefinition array  

ORM\Dbal\Column::__construct

↑ top


ORM\Dbal\Column::__get

public function __get(string $name): mixed
Get attributes from column
Returns mixed  
Parameters
Parameter Type Description
$name string  

ORM\Dbal\Column::__get

↑ top


ORM\Dbal\Column::getDefault

public function getDefault(): mixed
Get the default value of the column
Returns mixed  

ORM\Dbal\Column::getDefault

↑ top


ORM\Dbal\Column::getName

public function getName(): string
Get the name of the column
Returns string  

ORM\Dbal\Column::getName

↑ top


ORM\Dbal\Column::getNullable

public function getNullable(): bool
Get the nullable status of the column
Returns bool  

ORM\Dbal\Column::getNullable

↑ top


ORM\Dbal\Column::getType

public function getType(): \ORM\Dbal\Type
Determine and return the type
Returns ORM\Dbal\Type  

ORM\Dbal\Column::getType

↑ top


ORM\Dbal\Column::hasDefault

public function hasDefault(): bool
Check if default value is given
Returns bool  

ORM\Dbal\Column::hasDefault

↑ top


ORM\Dbal\Column::isNullable

public function isNullable(): bool
Check if the column is nullable
Returns bool  

ORM\Dbal\Column::isNullable

↑ top


ORM\Dbal\Column::registerType

public static function registerType(string $type): mixed
Register $type for describe
Static   This method is static.
Returns mixed  
Parameters
Parameter Type Description
$type string The full qualified class name

ORM\Dbal\Column::registerType

↑ top


ORM\Dbal\Column::validate

public function validate(mixed $value): bool|\ORM\Dbal\Error
Check if $value is valid for this type
Returns bool|ORM\Dbal\Error  
Parameters
Parameter Type Description
$value mixed  

ORM\Dbal\Column::validate

↑ top