public function setUsername($username)
    {
        if (preg_match(self::PATTERN_MATCH_USERNAME, $username) !== 1) {
            throw new \InvalidArgumentException('"' . $username . '" is not a valid username.', 1184071238);
        }

        $this->username = $username;
    }
public function setUsername($username)
    {
        if (preg_match(self::PATTERN_MATCH_USERNAME, $username) !== 1) {
            throw new \InvalidArgumentException('"' . $username . '" is not a valid username.', 1184071238);
        }

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

@param string $username User name of the login
@return void
@throws \InvalidArgumentException
@deprecated Since Flow 5.1, use withUserInfo instead
@see withUserInfo()
Sets the URI s username