23 if ( !is_string( $value ) && !( $value instanceof
LikeMatch ) ) {
24 $type = get_debug_type( $value );
25 throw new InvalidArgumentException(
"\$value must be string or LikeMatch, got $type" );
27 $this->values = [ $value ];
29 foreach ( $values as $value ) {
30 if ( !is_string( $value ) && !( $value instanceof
LikeMatch ) ) {
31 $type = get_debug_type( $value );
32 throw new InvalidArgumentException(
"\$value must be string or LikeMatch, got $type" );
34 $this->values[] = $value;