Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

49 lines
1.3KB

  1. <?php
  2. namespace Lc\ShopBundle\Services;
  3. use Cocur\Slugify\Slugify;
  4. use Doctrine\ORM\EntityManagerInterface;
  5. use EasyCorp\Bundle\EasyAdminBundle\Configuration\ConfigManager;
  6. use Lc\ShopBundle\Context\MerchantUtilsInterface;
  7. use Lc\ShopBundle\Context\PageInterface;
  8. use Lc\ShopBundle\Context\PointSaleInterface;
  9. use Lc\ShopBundle\Context\ReminderInterface;
  10. use Lc\ShopBundle\Context\TaxRateInterface;
  11. use Lc\ShopBundle\Context\UnitInterface;
  12. use Lc\ShopBundle\Context\UserInterface;
  13. use Lc\ShopBundle\Context\UserPointSaleInterface;
  14. use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
  15. use Symfony\Component\HttpFoundation\ParameterBag;
  16. use Symfony\Component\HttpFoundation\Session\SessionInterface;
  17. use Symfony\Contracts\Translation\TranslatorInterface;
  18. class CsvGenerator
  19. {
  20. protected $em ;
  21. protected $parameterBag ;
  22. protected $merchantUtils ;
  23. protected $session;
  24. protected $translator;
  25. protected $configManager;
  26. protected $arrayToExport;
  27. protected $columns;
  28. public function __construct()
  29. {
  30. }
  31. public function setColumns($columns){
  32. $this->columns = $columns;
  33. }
  34. public function setCell($row, $column, $value){
  35. $this->arrayToExport[$row][$column] = $value;
  36. }
  37. }