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 mixed __construct ( \Psr\Container\ContainerInterface $container )
$container \Psr\Container\ContainerInterface

                public function __construct(protected ContainerInterface $container)
{
}

            
addEntityPaths() public method

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

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

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

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

            
getGenerators() public method

public array getGenerators ( )

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

            
getMetadataReader() protected method

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

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

            
getTableNaming() public method

public integer getTableNaming ( )

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

            
setTableNaming() public method

public void setTableNaming ( integer $type )
$type integer

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