public function __construct(Client $client = null) { if (null === $client) { $client = new Client(); } $this->client = $client; $this->headers = array(); $this->postParameters = array(); }