You appear to be a bot. Output may be restricted
Description
Creates an instance of a column.
Usage
Column::__construct( $adapter, $name, $type, $options );
Parameters
- $adapter
- ( Adapter ) required – The current adapter.
- $name
- ( string ) required – The name of the column.
- $type
- ( string ) required – The type of the column.
- $options
- ( array ) optional – The column options.
Returns
void
Source
File name: wordpress-seo/lib/migrations/column.php
Lines:
1 to 15 of 15
public function __construct( $adapter, $name, $type, $options = [] ) { if ( ! $adapter instanceof Adapter ) { throw new Exception( 'Invalid Adapter instance.' ); } if ( empty( $name ) || ! \is_string( $name ) ) { throw new Exception( "Invalid 'name' parameter" ); } if ( empty( $type ) || ! \is_string( $type ) ) { throw new Exception( "Invalid 'type' parameter" ); } $this->adapter = $adapter; $this->name = $name; $this->type = $type; $this->options = $options; }