31 if ( !isset( $config[
'type'] ) ) {
32 throw new InvalidArgumentException(
'$config[\'type\'] must be specified' );
34 $this->type = $config[
'type'];
36 parent::__construct( $config );
39 if ( isset( $config[
'min'] ) ) {
40 $this->min = $config[
'min'];
42 if ( isset( $config[
'max'] ) ) {
43 $this->max = $config[
'max'];
45 if ( isset( $config[
'clearable'] ) ) {
46 $this->clearable = $config[
'clearable'];
50 $this->addClasses( [
'mw-widgets-datetime-dateTimeInputWidget' ] );