0 follower

Interface Yiisoft\Db\Schema\Column\CollatableColumnInterface

Implemented byYiisoft\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

Hide inherited 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

Hide inherited methods

collation() public abstract method

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;

            
getCollation() public abstract method

Returns the collation of the column.

public abstract string|null getCollation ( )

                public function getCollation(): ?string;