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