ValueObjects\Web\Url::getPath PHP Method

getPath() public method

Returns the path of the Url
public getPath ( ) : ValueObjects\Web\Path
return ValueObjects\Web\Path
    public function getPath()
    {
        return clone $this->path;
    }

Usage Example

Beispiel #1
0
 public function testGetPath()
 {
     $path = new Path('/bar');
     $this->assertTrue($this->url->getPath()->sameValueAs($path));
 }