/** * @param Client $client */ public function __construct(Client $client) { $this->client = $client; $this->options = array('query' => array('lang' => $this->client->getLocale(), 'format' => $this->client->getFormat())); parent::__construct(array('base_url' => $this->client->getUrl())); }