PHP Class Dumplie\Metadata\Infrastructure\Doctrine\Dbal\TypeRegistry

Exibir arquivo Open project: dumplie/dumplie Class Usage Examples

Public Methods

Method Description
__construct ( array $typeMappings = [] ) TypeRegistry constructor.
map ( string $schema, Doctrine\DBAL\Schema\Table $table, string $name, Dumplie\Metadata\Schema\FieldDefinition $definition )
register ( Dumplie\Metadata\Infrastructure\Doctrine\Dbal\TypeMapping $mapping )
withDefaultTypes ( ) : TypeRegistry

Method Details

__construct() public method

TypeRegistry constructor.
public __construct ( array $typeMappings = [] )
$typeMappings array

map() public method

public map ( string $schema, Doctrine\DBAL\Schema\Table $table, string $name, Dumplie\Metadata\Schema\FieldDefinition $definition )
$schema string
$table Doctrine\DBAL\Schema\Table
$name string
$definition Dumplie\Metadata\Schema\FieldDefinition

register() public method

public register ( Dumplie\Metadata\Infrastructure\Doctrine\Dbal\TypeMapping $mapping )
$mapping Dumplie\Metadata\Infrastructure\Doctrine\Dbal\TypeMapping

withDefaultTypes() public static method

public static withDefaultTypes ( ) : TypeRegistry
return TypeRegistry