public function isSuperset(EnumSet $other) { if ($this->enumeration !== $other->enumeration) { return false; } return ($this->bitset | $other->bitset) === $this->bitset; }