0 follower

Final Class Yiisoft\Db\Migration\Service\Generate\Column

InheritanceYiisoft\Db\Migration\Service\Generate\Column

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( string $name, string[] $decorators = [] )
$name string
$decorators string[]

                public function __construct(
    private readonly string $name,
    private readonly array $decorators = [],
) {}

            
getDecorators() public method

public array getDecorators ( )

                public function getDecorators(): array
{
    return $this->decorators;
}

            
getDecoratorsString() public method

public string getDecoratorsString ( )

                public function getDecoratorsString(): string
{
    return implode('->', $this->decorators);
}

            
getName() public method

public string getName ( )

                public function getName(): string
{
    return $this->name;
}

            
hasDecorators() public method

public boolean hasDecorators ( )

                public function hasDecorators(): bool
{
    return $this->decorators !== [];
}