Final Class Yiisoft\Db\Mysql\Column\StringColumn
| Inheritance | Yiisoft\Db\Mysql\Column\StringColumn » Yiisoft\Db\Schema\Column\StringColumn |
|---|
Represents the metadata for a string column.
Protected Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $characterSet | string|null | The column character set. | Yiisoft\Db\Mysql\Column\StringColumn |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| characterSet() | Sets the character set for the column. | Yiisoft\Db\Mysql\Column\StringColumn |
| getCharacterSet() | Returns the character set of the column. | Yiisoft\Db\Mysql\Column\StringColumn |
Property Details
The column character set.
Method Details
Sets the character set for the column.
| public Yiisoft\Db\Mysql\Column\StringColumn characterSet ( string|null $characterSet ) | ||
| $characterSet | string|null | |
public function characterSet(?string $characterSet): static
{
$this->characterSet = $characterSet;
return $this;
}
Returns the character set of the column.
| public string|null getCharacterSet ( ) |
public function getCharacterSet(): ?string
{
return $this->characterSet;
}
Signup or Login in order to comment.