FOS\UserBundle\Entity\UserManager::anyIsUser PHP Method

anyIsUser() protected method

Indicates whether the given user and all compared objects correspond to the same record
protected anyIsUser ( FOS\UserBundle\Model\UserInterface $user, array $comparisons ) : boolean
$user FOS\UserBundle\Model\UserInterface
$comparisons array
return boolean
    protected function anyIsUser($user, array $comparisons)
    {
        foreach ($comparisons as $comparison) {
            if (!$user->isUser($comparison)) {
                return false;
            }
        }
        return true;
    }