public function intersect(RolesStorageInterface $roles)
    {
        $res = array_intersect($roles->getArrayCopy(), $this->getArrayCopy());
        return (!empty($res));
    }
public function intersect(RolesStorageInterface $roles)
    {
        $res = array_intersect($roles->getArrayCopy(), $this->getArrayCopy());
        return (!empty($res));
    }
public function intersect ( RolesStorageInterface $ roles ) { $ res = array_intersect ( $ roles -> getArrayCopy ( ) , $ this -> getArrayCopy ( ) ) ; return ( ! empty ( $ res ) ) ; }
Checks if the given RolesStorage has any intersections
with this RolesStorage, i.e. if the user has one of the roles
stored in this object.

@param  RolesStorageInterface $roles RolesStorage
@return bool
@uses   RolesStorageInterface::getRoles()
Checks if the given RolesStorage has any intersections with this RolesStorage i . e . if the user has one of the roles stored in this object .