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