示例#1
0
 /**
  * @param string $database
  * @param string $table
  * @param string $column
  * @param string $type
  * @param array  $options
  */
 public function __construct($database, $table, $column, $type = 'string', array $options = [])
 {
     parent::__construct($database, $table);
     $this->name = $column;
     $this->type = $type;
     $this->options = $options;
 }
示例#2
0
 /**
  * @param string $database
  * @param string $table
  * @param string $newName
  */
 public function __construct($database, $table, $newName)
 {
     parent::__construct($database, $table);
     $this->newName = $newName;
 }
示例#3
0
 /**
  * @param string $database
  * @param string $table
  * @param array  $columns
  */
 public function __construct($database, $table, array $columns)
 {
     parent::__construct($database, $table);
     $this->columns = $columns;
 }