public function convert($variable, $callback)
    {
        $converters = $this->getOption('_converters');
        $converters[$variable] = $callback;
        $this->setOption('_converters', $converters);

        return $this;
    }
public function convert($variable, $callback)
    {
        $converters = $this->getOption('_converters');
        $converters[$variable] = $callback;
        $this->setOption('_converters', $converters);

        return $this;
    }
public function convert ( $ variable , $ callback ) { $ converters = $ this -> getOption ( '_converters' ) ; $ converters [ $ variable ] = $ callback ; $ this -> setOption ( '_converters' , $ converters ) ; return $ this ; }
Sets a converter for a route variable.

@param string $variable The variable name
@param mixed  $callback A PHP callback that converts the original value

@return Route $this The current Route instance
Sets a converter for a route variable .