/** * @param JobConfig $config * @param ClientInterface $client A client used to communicate with the API (wrapper for Guzzle, SoapClient, ...) * @param ParserInterface $parser A parser to handle the result and convert it into CSV file(s) */ public function __construct(JobConfig $config, ClientInterface $client, ParserInterface $parser) { $this->config = $config; $this->client = $client; $this->parser = $parser; $this->jobId = $config->getJobId(); }
/** * @param JobConfig $job */ public function addChildJob(self $job) { $this->childJobs[$job->getJobId()] = $job; }