| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 8 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 1 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 22 | 2 | public function __invoke(?DateTimeImmutable $expiresAt = null): string | |
| 23 |     { | ||
| 24 | 2 | return (string) $this->jwtConfig | |
| 25 | 2 | ->createBuilder() | |
| 26 | 2 | ->issuedBy($this->mercureConfig['jwt_issuer'] ?? 'Shlink') | |
| 27 | 2 | ->issuedAt(Chronos::now()) | |
| 28 | 2 | ->expiresAt($expiresAt ?? Chronos::now()->addMinutes(10)) | |
| 29 | 2 | ->getToken($this->jwtConfig->getSigner(), $this->jwtConfig->getSigningKey()); | |
| 30 | } | ||
| 32 |