0 follower

Final Class Yiisoft\Db\Mysql\Column\StringColumn

InheritanceYiisoft\Db\Mysql\Column\StringColumn » Yiisoft\Db\Schema\Column\StringColumn

Represents the metadata for a string column.

Protected Properties

Hide inherited properties

Property Type Description Defined By
$characterSet string|null The column character set. Yiisoft\Db\Mysql\Column\StringColumn

Public Methods

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

Hide inherited properties

$characterSet protected property

The column character set.

protected string|null $characterSet null

Method Details

Hide inherited methods

characterSet() public method

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;
}

            
getCharacterSet() public method

Returns the character set of the column.

public string|null getCharacterSet ( )

                public function getCharacterSet(): ?string
{
    return $this->characterSet;
}