public function setMatch($value)
    {
        switch (gettype($value)) {
            case 'array':
                $this->match = $value;
                break;
            case 'string':
                $this->match = [$value];
                break;
            case 'boolean':
                if ($value === false) {
                    $this->match = false;
                    break;
                }
                // Match could not be true.
            default:
                throw new InvalidConfigException("Invalid configuration. Wrong march type '{$value}'.");
        }
    }
public function setMatch($value)
    {
        switch (gettype($value)) {
            case 'array':
                $this->match = $value;
                break;
            case 'string':
                $this->match = [$value];
                break;
            case 'boolean':
                if ($value === false) {
                    $this->match = false;
                    break;
                }
                // Match could not be true.
            default:
                throw new InvalidConfigException("Invalid configuration. Wrong march type '{$value}'.");
        }
    }
public function setMatch ( $ value ) { switch ( gettype ( $ value ) ) { case 'array' : $ this -> match = $ value ; break ; case 'string' : $ this -> match = [ $ value ] ; break ; case 'boolean' : if ( $ value === false ) { $ this -> match = false ; break ; } // Match could not be true. default : throw new InvalidConfigException ( "Invalid configuration. Wrong march type '{$value}'." ) ; } }
Changes match to one format.

@param mixed $value New match.

@throws \yii\base\InvalidConfigException On wrong match type set.
Changes match to one format .