ezcDbSchemaIndexField) */ public $indexFields; /** * Whether this is the primary index for a table. * * @var bool */ public $primary; /** * Whether entries in this index need to be unique. * * @var bool */ public $unique; /** * Constructs an ezcDbSchemaIndex object. * * @param array(string=>ezcDbSchemaIndexField) $indexFields * @param bool $primary * @param bool $unique */ function __construct( $indexFields, $primary = false, $unique = true ) { ksort( $indexFields ); $this->indexFields = $indexFields; $this->primary = (bool) $primary; $this->unique = (bool) $unique; } static public function __set_state( array $array ) { return new ezcDbSchemaIndex( $array['indexFields'], $array['primary'], $array['unique'] ); } } ?>