29 if ( isset( $config[
'type'] ) ) {
30 $this->type = $config[
'type'];
32 throw new \InvalidArgumentException(
'$config[\'type\'] must be specified' );
35 parent::__construct( $config );
38 if ( isset( $config[
'min'] ) ) {
39 $this->min = $config[
'min'];
41 if ( isset( $config[
'max'] ) ) {
42 $this->max = $config[
'max'];
44 if ( isset( $config[
'clearable'] ) ) {
45 $this->clearable = $config[
'clearable'];
49 $this->addClasses( [
'mw-widgets-datetime-dateTimeInputWidget' ] );