0 follower

Class Yiisoft\Yii\Cycle\Schema\Conveyor\MetadataSchemaConveyor

InheritanceYiisoft\Yii\Cycle\Schema\Conveyor\MetadataSchemaConveyor » Yiisoft\Yii\Cycle\Schema\Conveyor\SchemaConveyor
ImplementsYiisoft\Yii\Cycle\Schema\SchemaConveyorInterface

The class is left not final for expansion

Protected Properties

Hide inherited properties

Property Type Description Defined By
$container \Psr\Container\ContainerInterface Yiisoft\Yii\Cycle\Schema\Conveyor\SchemaConveyor
$conveyor array Yiisoft\Yii\Cycle\Schema\Conveyor\SchemaConveyor

Constants

Hide inherited constants

Constant Value Description Defined By
STAGE_INDEX 'index' Declare entities and their fields Yiisoft\Yii\Cycle\Schema\SchemaConveyorInterface
STAGE_POSTPROCESS 'postprocess' Post processing Yiisoft\Yii\Cycle\Schema\SchemaConveyorInterface
STAGE_RENDER 'render' Render tables and relations Yiisoft\Yii\Cycle\Schema\SchemaConveyorInterface
STAGE_USERLAND 'userland' Userland scripts Yiisoft\Yii\Cycle\Schema\SchemaConveyorInterface

Method Details

Hide inherited methods

__construct() public method
public __construct( \Psr\Container\ContainerInterface $container ): mixed
$container \Psr\Container\ContainerInterface

                public function __construct(protected ContainerInterface $container)
{
}

            
addEntityPaths() public method

public addEntityPaths( string[] $paths ): void
$paths string[]

                final public function addEntityPaths(array $paths): void
{
    $this->entityPaths = array_merge($this->entityPaths, $paths);
}

            
addGenerator() public method
public addGenerator( string $stage, mixed $generator ): void
$stage string
$generator mixed

                #[\Override]
public function addGenerator(string $stage, $generator): void
{
    $this->conveyor[$stage][] = $generator;
}

            
getGenerators() public method

public getGenerators( ): array

                #[\Override]
public function getGenerators(): array
{
    $this->addMetadataGenerators();
    return parent::getGenerators();
}

            
getMetadataReader() protected method

protected getMetadataReader( ): \Spiral\Attributes\ReaderInterface|null

                protected function getMetadataReader(): ?ReaderInterface
{
    return new AttributeReader();
}

            
getTableNaming() public method

public getTableNaming( ): integer

                final public function getTableNaming(): int
{
    return $this->tableNaming;
}

            
setTableNaming() public method

public setTableNaming( integer $type ): void
$type integer

                final public function setTableNaming(
    #[ExpectedValues(valuesFromClass: Entities::class)]
    int $type
): void {
    $this->tableNaming = $type;
}