elicitationId = $elicitationId; } /** * Creates an instance from an array. * * @param array{ * elicitationId: string * } $data * @phpstan-param array $data * @return self */ public static function fromArray(array $data): self { self::assertRequired($data, ['elicitationId']); return new self( self::asString($data['elicitationId']) ); } /** * Converts the instance to an array. * * @return array */ public function toArray(): array { $result = []; $result['elicitationId'] = $this->elicitationId; return $result; } /** * @return string */ public function getElicitationId(): string { return $this->elicitationId; } }