18 if ( !is_string( $value ) && !( $value instanceof
LikeMatch ) ) {
19 throw new InvalidArgumentException(
"Value $value must be either string or LikeMatch" );
21 $this->values = [ $value ];
23 foreach ( $values as $value ) {
24 if ( !is_string( $value ) && !( $value instanceof
LikeMatch ) ) {
25 throw new InvalidArgumentException(
"Value $value must be either string or LikeMatch" );
27 $this->values[] = $value;