Class Yiisoft\Yii\Cycle\Schema\Conveyor\MetadataSchemaConveyor
| Inheritance | Yiisoft\Yii\Cycle\Schema\Conveyor\MetadataSchemaConveyor » Yiisoft\Yii\Cycle\Schema\Conveyor\SchemaConveyor |
|---|---|
| Implements | Yiisoft\Yii\Cycle\Schema\SchemaConveyorInterface |
The class is left not final for expansion
Protected Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $container | \Psr\Container\ContainerInterface | Yiisoft\Yii\Cycle\Schema\Conveyor\SchemaConveyor | |
| $conveyor | array | Yiisoft\Yii\Cycle\Schema\Conveyor\SchemaConveyor |
Public Methods
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| getMetadataReader() | Yiisoft\Yii\Cycle\Schema\Conveyor\MetadataSchemaConveyor |
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
| public mixed __construct ( \Psr\Container\ContainerInterface $container ) | ||
| $container | \Psr\Container\ContainerInterface | |
public function __construct(protected ContainerInterface $container)
{
}
| public void addEntityPaths ( string[] $paths ) | ||
| $paths | string[] | |
final public function addEntityPaths(array $paths): void
{
$this->entityPaths = array_merge($this->entityPaths, $paths);
}
| public void addGenerator ( string $stage, mixed $generator ) | ||
| $stage | string | |
| $generator | mixed | |
#[\Override]
public function addGenerator(string $stage, $generator): void
{
$this->conveyor[$stage][] = $generator;
}
| public array getGenerators ( ) |
#[\Override]
public function getGenerators(): array
{
$this->addMetadataGenerators();
return parent::getGenerators();
}
| protected \Spiral\Attributes\ReaderInterface|null getMetadataReader ( ) |
protected function getMetadataReader(): ?ReaderInterface
{
return new AttributeReader();
}
| public integer getTableNaming ( ) |
final public function getTableNaming(): int
{
return $this->tableNaming;
}
| public void setTableNaming ( integer $type ) | ||
| $type | integer | |
final public function setTableNaming(
#[ExpectedValues(valuesFromClass: Entities::class)]
int $type
): void {
$this->tableNaming = $type;
}
Signup or Login in order to comment.