Neos\Flow\Http\Uri::setUsername PHP Method

setUsername() public method

Sets the URI's username
public setUsername ( string $username ) : void
$username string User name of the login
return void
    public function setUsername($username)
    {
        if (preg_match(self::PATTERN_MATCH_USERNAME, $username) === 1) {
            $this->username = $username;
        } else {
            throw new \InvalidArgumentException('"' . $username . '" is not a valid username.', 1184071238);
        }
    }