Exemplo n.º 1
0
 /**
  * Compares the specified object with this map for equality.
  */
 public function equals(Object $o)
 {
     if ($o instanceof AbstractCollection) {
         foreach ($this->map as $key => $value) {
             if (!$o->containsKey($key) || !$o->containsValue($value)) {
                 return false;
             }
         }
         return true;
     }
     return false;
 }