SecurityIdentityInterface.php 823 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.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. */
  26. public function equals(SecurityIdentityInterface $identity);
  27. }