SeedProviderInterface.php 627B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace JMS\SecurityExtraBundle\Security\Util;
  3. /**
  4. * Seed Provider Interface.
  5. *
  6. * @author Johannes M. Schmitt <schmittjoh@gmail.com>
  7. */
  8. interface SeedProviderInterface
  9. {
  10. /**
  11. * Loads the initial seed.
  12. *
  13. * Whatever is returned from this method, it should not be guessable.
  14. *
  15. * @return array of the format array(string, DateTime) where string is the
  16. * initial seed, and DateTime is the last time it was updated
  17. */
  18. public function loadSeed();
  19. /**
  20. * Updates the seed.
  21. *
  22. * @param string $seed
  23. */
  24. public function updateSeed($seed);
  25. }