35 if ( !isset( $config[
'type'] ) ) {
36 throw new InvalidArgumentException(
'$config[\'type\'] must be specified' );
38 $this->type = $config[
'type'];
40 parent::__construct( $config );
43 if ( isset( $config[
'min'] ) ) {
44 $this->min = $config[
'min'];
46 if ( isset( $config[
'max'] ) ) {
47 $this->max = $config[
'max'];
49 if ( isset( $config[
'clearable'] ) ) {
50 $this->clearable = $config[
'clearable'];
54 $this->addClasses( [
'mw-widgets-datetime-dateTimeInputWidget' ] );