vendor/symfony/src/Symfony/Component/Security/Acl/Model/SecurityIdentityInterface.php
changeset 0 7f95f8617b0b
equal deleted inserted replaced
-1:000000000000 0:7f95f8617b0b
       
     1 <?php
       
     2 
       
     3 /*
       
     4  * This file is part of the Symfony package.
       
     5  *
       
     6  * (c) Fabien Potencier <fabien@symfony.com>
       
     7  *
       
     8  * For the full copyright and license information, please view the LICENSE
       
     9  * file that was distributed with this source code.
       
    10  */
       
    11 
       
    12 namespace Symfony\Component\Security\Acl\Model;
       
    13 
       
    14 /**
       
    15  * This interface provides an additional level of indirection, so that
       
    16  * we can work with abstracted versions of security objects and do
       
    17  * not have to save the entire objects.
       
    18  *
       
    19  * @author Johannes M. Schmitt <schmittjoh@gmail.com>
       
    20  */
       
    21 interface SecurityIdentityInterface
       
    22 {
       
    23     /**
       
    24      * This method is used to compare two security identities in order to
       
    25      * not rely on referential equality.
       
    26      *
       
    27      * @param SecurityIdentityInterface $identity
       
    28      * @return void
       
    29      */
       
    30     function equals(SecurityIdentityInterface $identity);
       
    31 }