芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/store.kwesioben.com/vendor/lcobucci/jwt/src/Encoding/ChainedFormatter.php
*/ private array $formatters; public function __construct(ClaimsFormatter ...$formatters) { $this->formatters = $formatters; } public static function default(): self { return new self(new UnifyAudience(), new MicrosecondBasedDateConversion()); } public static function withUnixTimestampDates(): self { return new self(new UnifyAudience(), new UnixTimestampDates()); } /** @inheritdoc */ public function formatClaims(array $claims): array { foreach ($this->formatters as $formatter) { $claims = $formatter->formatClaims($claims); } return $claims; } }