key = $key; $this->name = $name; $this->description = $description; $this->mask = $mask; $this->access = $access; } public function intersectsWith(BitField $other): bool { return $this->mask !== null && $other->mask !== null && ($this->mask & $other->mask) !== 0 ; } }