ValueObjects\Web\Url::getPassword PHP 메소드

getPassword() 공개 메소드

Returns the password part of the Url
public getPassword ( ) : ValueObjects\StringLiteral\StringLiteral
리턴 ValueObjects\StringLiteral\StringLiteral
    public function getPassword()
    {
        return clone $this->password;
    }

Usage Example

예제 #1
0
 public function testGetPassword()
 {
     $password = new StringLiteral('pass');
     $this->assertTrue($this->url->getPassword()->sameValueAs($password));
 }