public function __construct(Client $client, $boundary = false, $rootUrl = '', $batchPath = '') { $this->client = $client; $this->root_url = rtrim($rootUrl ? $rootUrl : $this->client->getBasePath(), '/'); $this->batch_path = $batchPath ? $batchPath : 'batch'; $this->expected_classes = array(); $boundary = false == $boundary ? mt_rand() : $boundary; $this->boundary = str_replace('"', '', $boundary); }