[], 'invert' => [], 'invertLabel' => [], 'associated' => [], 'associatedLabel' => [], ], $config ); parent::__construct( $config ); // Properties $this->config = $config; $this->namespace = new NamespaceInputWidget( $config['namespace'] ); if ( $config['associated'] !== null ) { $this->associated = new \OOUI\CheckboxInputWidget( array_merge( [ 'value' => '1' ], $config['associated'] ) ); // TODO Should use a LabelWidget? But they don't work like HTML