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\TypeInterface

ORM\Dbal\TypeInterface

Table of Contents

Abstract

Interface TypeInterface

Methods

ORM\Dbal\TypeInterface::factory

public static function factory(
    \ORM\Dbal\Dbal $dbal, 
    array $columnDefinition, 
): \ORM\Dbal\Type
Create Type class for given $dbal and $columnDefinition
Static   This method is static.
Returns ORM\Dbal\Type  
Parameters
Parameter Type Description
$dbal ORM\Dbal\Dbal  
$columnDefinition array  

ORM\Dbal\TypeInterface::factory

↑ top


ORM\Dbal\TypeInterface::fits

public static function fits(array $columnDefinition): bool
Check if this type fits to $columnDefinition
Static   This method is static.
Returns bool  
Parameters
Parameter Type Description
$columnDefinition array  

ORM\Dbal\TypeInterface::fits

↑ top


ORM\Dbal\TypeInterface::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\TypeInterface::validate

↑ top