Skip to content

Commit 1a9c5a7

Browse files
committed
Generate readme
1 parent 969c008 commit 1a9c5a7

File tree

7 files changed

+23613
-2
lines changed

7 files changed

+23613
-2
lines changed

BearerToken.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace ApiClients\Client\GitHubEnterpriseCloud;
6+
7+
use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface;
8+
9+
final readonly class BearerToken implements AuthenticationInterface
10+
{
11+
public function __construct(private string $token)
12+
{
13+
}
14+
15+
public function authHeader(): string
16+
{
17+
return 'Bearer ' . $this->token;
18+
}
19+
}

0 commit comments

Comments
 (0)