requireLatestSupportedParameters('HITABS'); switch ($hitabs->getVersion()) { case 4: return HKTABv4::createEmpty(); case 5: return HKTABv5::createEmpty(); default: throw new UnsupportedException('Unsupported HKTAB version: ' . $hitabs->getVersion()); } } /** {@inheritdoc} */ public function processResponse(Message $response) { parent::processResponse($response); /** @var HITAB $hitab */ $hitab = $response->requireSegment(HITAB::class); $this->tanMedia = $hitab->getTanMediumListe() === null ? [] : $hitab->getTanMediumListe(); } /** * @return TanMediumListe[]|null */ public function getTanMedia(): ?array { $this->ensureDone(); return $this->tanMedia; } }