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

__construct() 공개 메소드

Create a column schema builder instance giving the type and value precision.
public __construct ( string $type, integer | string | array $length = null, Connection $db = null, array $config = [] )
$type string type of the column. See [[$type]].
$length integer | string | array length or precision of the column. See [[$length]].
$db Connection the current database connection. See [[$db]].
$config array name-value pairs that will be used to initialize the object properties
    public function __construct($type, $length = null, $db = null, $config = [])
    {
        $this->type = $type;
        $this->length = $length;
        $this->db = $db;
        parent::__construct($config);
    }