tokens; } /** * Get the instance as an array. */ public function toArray(): array { return array_map(function (Token|Data $token) { return $token instanceof Data ? $token->values() : $token->value; }, $this->tokens); } /** * Get a JSON representation of the response tokens. */ public function __toString(): string { return implode(' ', $this->tokens); } }