set() public method

Sets a route parameter.
public set ( string $parameterName, mixed $value )
$parameterName string
$value mixed
 public function testRemoveParam()
 {
     $reference = new RouteReference('foo');
     $reference->set('foo', 'bar');
     $this->assertTrue($reference->has('foo'));
     $this->assertSame('bar', $reference->get('foo'));
     $reference->remove('foo');
     $this->assertFalse($reference->has('foo'));
 }