Interface Yiisoft\Db\Schema\Column\CollatableColumnInterface
| Implemented by | Yiisoft\Db\Schema\Column\EnumColumn, Yiisoft\Db\Schema\Column\StringColumn |
|---|
Represents a column with collation.
Provides methods to set and get a collation value for the column.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| collation() | Sets the collation for the column. | Yiisoft\Db\Schema\Column\CollatableColumnInterface |
| getCollation() | Returns the collation of the column. | Yiisoft\Db\Schema\Column\CollatableColumnInterface |
Method Details
Sets the collation for the column.
| public abstract Yiisoft\Db\Schema\Column\CollatableColumnInterface collation ( string|null $collation ) | ||
| $collation | string|null | |
public function collation(?string $collation): static;
Returns the collation of the column.
| public abstract string|null getCollation ( ) |
public function getCollation(): ?string;
Signup or Login in order to comment.