yii\db\ColumnSchemaBuilder::__toString PHP Method

__toString() public method

Builds the full string for the column's schema
public __toString ( ) : string
return string
    public function __toString()
    {
        switch ($this->getTypeCategory()) {
            case self::CATEGORY_PK:
                $format = '{type}{check}{comment}{append}';
                break;
            default:
                $format = '{type}{length}{notnull}{unique}{default}{check}{comment}{append}';
        }
        return $this->buildCompleteString($format);
    }