CapMousse\ReactRestify\Routing\Route::where PHP Method

where() public method

Create a new filter for current route
public where ( String $param, String $filter ) : void
$param String parameter to filter
$filter String regexp to execute
return void
    public function where($param, $filter)
    {
        if (is_array($param)) {
            $this->filters = array_merge($this->filters, $param);
            return;
        }
        $this->filters[$param] = $filter;
    }