vendor/theofidry/alice-data-fixtures/src/Persistence/PurgerFactoryInterface.php line 22

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the Fidry\AliceDataFixtures package.
  4. *
  5. * (c) Théo FIDRY <theo.fidry@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. declare(strict_types=1);
  11. namespace Fidry\AliceDataFixtures\Persistence;
  12. interface PurgerFactoryInterface
  13. {
  14. /**
  15. * Creates a new purger with the given purger mode. As the purger is stateful, it may be useful sometimes to create
  16. * a new purger with the same state as an existing one and just have control on the purge mode.
  17. */
  18. public function create(PurgeMode $mode, PurgerInterface $purger = null): PurgerInterface;
  19. }