/** * Saves file name and TTL for further garbage collection, increments counter of sent packages */ public function postPhase(StashedDataPackage $stashedDataPackage) { $cipherFile = $this->_cipherFileManager->create(); $fileName = $this->_yamler->getCipherFileName(); $cipherFile->setTimeOfDying($stashedDataPackage->getTimeOfDying())->setFileName($fileName); $this->_cipherFileManager->persist($cipherFile); $this->_packageCounterManager->incrementSentPackages(); }