public function setUsername($value)
    {
        $this->assertValidString($value, false);

        $this->username = $value;
        if ($this->username !== '') {
            $this->flags |= 64;
        } else {
            $this->flags &= ~64;
        }
    }
public function setUsername($value)
    {
        $this->assertValidString($value, false);

        $this->username = $value;
        if ($this->username !== '') {
            $this->flags |= 64;
        } else {
            $this->flags &= ~64;
        }
    }
public function setUsername ( $ value ) { $ this -> assertValidString ( $ value , false ) ; $ this -> username = $ value ; if ( $ this -> username !== '' ) { $ this -> flags |= 64 ; } else { $ this -> flags &= ~ 64 ; } }
Sets the username.

@param string $value

@throws \InvalidArgumentException
Sets the username .