public __construct ( string $type, integer | string | array $length = null, |
||
$type | string | type of the column. See [[$type]]. |
$length | integer | string | array | length or precision of the column. See [[$length]]. |
$db | 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);
}