setFragment() public méthode

Set the Fragment instance.
public setFragment ( purl\Fragment $fragment )
$fragment purl\Fragment
Exemple #1
0
 public function testIdeGettersAndSetters()
 {
     $url = new Url('http://jwage.com');
     $url->setPath(new Path('about'));
     $url->setQuery(new Query('param=value'));
     $url->setFragment(new Fragment(new Path('about'), new Query('param=value')));
     $this->assertEquals('http://jwage.com/about?param=value#about?param=value', (string) $url);
 }