ReportWriterInterface.php 647 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Analytics\Model;
  7. use Magento\Framework\Filesystem\Directory\WriteInterface;
  8. /**
  9. * Interface ReportWriterInterface
  10. *
  11. * Writes report files
  12. * Executes export of collected data
  13. * Iterates registered providers @see etc/analytics.xml
  14. * Collects data (to TMP folder)
  15. */
  16. interface ReportWriterInterface
  17. {
  18. /**
  19. * Writes report files to provided path
  20. *
  21. * @param WriteInterface $directory
  22. * @param string $path
  23. * @return void
  24. */
  25. public function write(WriteInterface $directory, $path);
  26. }