public function __construct(Client $client, array $data = array()) { $this->client = $client; $this->loadFromArray($data); }