Overview

Namespaces

  • Inlm
    • SchemaGenerator
      • Adapters
      • Bridges
        • PhpCli
      • Diffs
      • Dumpers
      • Extractors
      • Integrations
      • Loggers
      • Utils

Classes

  • DibiExtractor
  • LeanMapperExtractor
  • NeonExtractor
  • 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 CzProject\SqlSchema\Schema
# generateSchema( array $options = array(), array $customTypes = array(), string|null $databaseType = NULL )

Parameters

$options
$customTypes
$databaseType

Returns

CzProject\SqlSchema\Schema

Implementation of

Inlm\SchemaGenerator\IExtractor::generateSchema()
protected
# generateEntity( $entityClass )
protected boolean
# isEntityIgnored( string $docComment )

Parameters

$docComment

Returns

boolean
protected
# extractTableComment( $tableName, $docComment )
protected
# extractTableOption( $tableName, $docComment )
protected
# extractTableIndexes( $tableName, LeanMapper\Reflection\EntityReflection $reflection, $indexType, $entityClass )
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( string $tableName, string $columnName, LeanMapper\Reflection\Property $property )

Parameters

$tableName
$columnName
$property
protected
# extractColumnAutoIncrement( string $tableName, string $columnName, LeanMapper\Reflection\Property $property, $isPrimaryColumn )

Parameters

$tableName
$columnName
$property
$isPrimaryColumn
protected
# extractColumnIndex( LeanMapper\Reflection\Property $property, $type, $tableName, $columnName )
protected
# addIndexByType( $indexType, $tableName, $columns )
protected
# addHasManyRelationship( 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]

#
protected string|null $databaseType
#
protected Inlm\SchemaGenerator\Utils\Generator $generator
#
inlm/schema-generator v0.6.2 API documentation API documentation generated by ApiGen