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

コード例 #1
0
ファイル: UrlTest.php プロジェクト: cermat/valueobjects
 public function testGetPath()
 {
     $path = new Path('/bar');
     $this->assertTrue($this->url->getPath()->sameValueAs($path));
 }