public function __construct($username, \stdClass $attributes, Client $client) { $this->username = (string) $username; $this->attributes = $attributes; $this->client = $client; }