setQuery() публичный Метод

Set the Query instance.
public setQuery ( Query $query )
$query Query
Пример #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);
 }