Overview

Namespaces

  • Inlm
    • SchemaGenerator
      • Adapters
      • Diffs
      • Dumpers
      • Extractors
      • Loggers
      • Utils

Classes

  • DibiMysqlExtractor
  • LeanMapperExtractor
  • Overview
  • Namespace
  • Class

Class LeanMapperExtractor

Inlm\SchemaGenerator\Extractors\LeanMapperExtractor implements Inlm\SchemaGenerator\IExtractor
Namespace: Inlm\SchemaGenerator\Extractors
Located at Extractors/LeanMapperExtractor.php
Methods summary
public
# __construct( string|string[] $directories, LeanMapper\IMapper $mapper )

Parameters

$directories
$mapper
public Schema
# generateSchema( array $options = array(), array $customTypes = array() )

Returns

Schema

Implementation of

Inlm\SchemaGenerator\IExtractor::generateSchema()
protected
# generateEntity( Inlm\SchemaGenerator\Utils\Generator $generator, $entityClass )
protected
# extractTableComment( CzProject\SqlSchema\Table $table, $docComment )
protected
# extractTableOption( CzProject\SqlSchema\Table $table, $docComment )
protected
# extractTableIndexes( Inlm\SchemaGenerator\Utils\Generator $generator, $tableName, LeanMapper\Reflection\EntityReflection $reflection, $indexType )
protected Inlm\SchemaGenerator\DataType
# extractColumnType( LeanMapper\Reflection\Property $property, $isPrimaryColumn, $entityClass )

Returns

Inlm\SchemaGenerator\DataType
protected Inlm\SchemaGenerator\DataType
# parseTypeFlag( LeanMapper\Reflection\Property $property, string $flagName )

Parameters

$property
$flagName

Returns

Inlm\SchemaGenerator\DataType

Throws

Inlm\SchemaGenerator\InvalidArgumentException
protected
# extractColumnComment( CzProject\SqlSchema\Column $column, LeanMapper\Reflection\Property $property )
protected
# extractColumnAutoIncrement( CzProject\SqlSchema\Column $column, LeanMapper\Reflection\Property $property, $primaryKey )
protected
# extractColumnIndex( Inlm\SchemaGenerator\Utils\Generator $generator, LeanMapper\Reflection\Property $property, $type, $tableName, $columnName, $propertySource )
protected
# addIndexByType( Inlm\SchemaGenerator\Utils\Generator $generator, $indexType, $tableName, $columns, $sourceId )
protected
# addHasManyRelationship( Inlm\SchemaGenerator\Utils\Generator $generator, LeanMapper\Relationship\HasMany $relationship, $sourceTable )
protected string[]
# findEntities( )

Returns list of FQN class names.

Returns list of FQN class names.

Returns

string[]
protected LeanMapper\Reflection\EntityReflection
# getFamilyLine( LeanMapper\Reflection\EntityReflection $reflection )

Returns

LeanMapper\Reflection\EntityReflection
Properties summary
protected LeanMapper\IMapper $mapper
#
protected string|string[] $directories
#
protected array $customTypes

[name => DataType]

[name => DataType]

#
inlm/schema-generator v0.3.1 API documentation API documentation generated by ApiGen