trapKind = $trapKind; } public function getTrapKind(): TrapKind { return $this->trapKind; } }