soteshopXml = new stSoteshopXml(); $this->soteshopXml->setCLI($this->isCLI()); } /** * W tej metodzie zwracamy ile rekordów/danych zamierzamy wykonać */ public function count(): int { return $this->soteshopXml->getStepsCount(); } public function started() { $this->soteshopXml->init(); } public function finished() { $this->soteshopXml->close(); } /** * W tej metodzie wykonujemy swoje operacje na danych * */ public function execute(int $offset): int { return $this->soteshopXml->generate($offset); } }