SecurityIdentityInterface.php 853 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien.potencier@symfony-project.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. namespace Symfony\Component\Security\Acl\Model;
  11. /**
  12. * This interface provides an additional level of indirection, so that
  13. * we can work with abstracted versions of security objects and do
  14. * not have to save the entire objects.
  15. *
  16. * @author Johannes M. Schmitt <schmittjoh@gmail.com>
  17. */
  18. interface SecurityIdentityInterface
  19. {
  20. /**
  21. * This method is used to compare two security identities in order to
  22. * not rely on referential equality.
  23. *
  24. * @param SecurityIdentityInterface $identity
  25. * @return void
  26. */
  27. function equals(SecurityIdentityInterface $identity);
  28. }