Final Class Yiisoft\Db\Migration\Service\Generate\Column
| Inheritance | Yiisoft\Db\Migration\Service\Generate\Column |
|---|
Public Methods
Method Details
| public mixed __construct ( string $name, string[] $decorators = [] ) | ||
| $name | string | |
| $decorators | string[] | |
public function __construct(
private readonly string $name,
private readonly array $decorators = [],
) {}
| public string getDecoratorsString ( ) |
public function getDecoratorsString(): string
{
return implode('->', $this->decorators);
}
| public boolean hasDecorators ( ) |
public function hasDecorators(): bool
{
return $this->decorators !== [];
}
Signup or Login in order to comment.