yii\db\ColumnSchemaBuilder::__toString PHP 메소드

__toString() 공개 메소드

Builds the full string for the column's schema
public __toString ( ) : string
리턴 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);
    }