src/Entity/CustomFilter.php
public function setRouteParameters($routeParameters)
    {
        if (!is_string($routeParameters)) {
            $this->routeParameters = json_encode($routeParameters);
        } else {
            $this->routeParameters = $routeParameters;
        }

        return $this;
    }
public function setRouteParameters($routeParameters)
    {
        if (!is_string($routeParameters)) {
            $this->routeParameters = json_encode($routeParameters);
        } else {
            $this->routeParameters = $routeParameters;
        }

        return $this;
    }
public function setRouteParameters ( $ routeParameters ) { if ( ! is_string ( $ routeParameters ) ) { $ this -> routeParameters = json_encode ( $ routeParameters ) ; } else { $ this -> routeParameters = $ routeParameters ; } return $ this ; }
Set routeParameters.

@param string|mixed $routeParameters

@return CustomFilter
Set routeParameters .