original_string: public function intersect(RolesStorageInterface $roles)
      {
          $res = array_intersect($roles->getArrayCopy(), $this->getArrayCopy());
          return (!empty($res));
      }
code: public function intersect(RolesStorageInterface $roles)
      {
          $res = array_intersect($roles->getArrayCopy(), $this->getArrayCopy());
          return (!empty($res));
      }
code_tokens: public function intersect ( RolesStorageInterface $ roles ) { $ res = array_intersect ( $ roles -> getArrayCopy ( ) , $ this -> getArrayCopy ( ) ) ; return ( ! empty ( $ res ) ) ; }
docstring: 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()
docstring_tokens: 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 .