yii\db\SchemaBuilderTrait::char PHP Метод

char() публичный Метод

Creates a char column.
С версии: 2.0.8
public char ( integer $length = null ) : ColumnSchemaBuilder
$length integer column size definition i.e. the maximum string length. This parameter will be ignored if not supported by the DBMS.
Результат ColumnSchemaBuilder the column instance which can be further customized.
    public function char($length = null)
    {
        return $this->getDb()->getSchema()->createColumnSchemaBuilder(Schema::TYPE_CHAR, $length);
    }