From bbf24da43b77ee2c88bcf2e145359292c1332712 Mon Sep 17 00:00:00 2001 From: Mai-Lapyst Date: Sun, 4 Dec 2022 20:57:07 +0100 Subject: [PATCH] Adding getter for token in AggregatedType --- src/Types/AggregatedType.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Types/AggregatedType.php b/src/Types/AggregatedType.php index 6f9e879..aa5a9d2 100644 --- a/src/Types/AggregatedType.php +++ b/src/Types/AggregatedType.php @@ -50,6 +50,13 @@ public function __construct(array $types, string $token) $this->token = $token; } + /** + * Returns the token used to separate the types + */ + public function getToken(): string { + return $this->token; + } + /** * Returns the type at the given index. */