public function __construct(ClientInterface $client, Collection $collection, Api $api) { $this->client = $client; $this->collection = $collection; $this->api = $api; }