| 1: | <?php declare(strict_types=1); |
| 2: | |
| 3: | namespace Salient\Http; |
| 4: | |
| 5: | use Salient\Contract\Core\Immutable; |
| 6: | use Salient\Contract\Http\CredentialInterface; |
| 7: | |
| 8: | |
| 9: | |
| 10: | |
| 11: | class GenericCredential implements CredentialInterface, Immutable |
| 12: | { |
| 13: | private string $AuthenticationScheme; |
| 14: | private string $Credential; |
| 15: | |
| 16: | |
| 17: | |
| 18: | |
| 19: | public function __construct( |
| 20: | string $credential, |
| 21: | string $authenticationScheme |
| 22: | ) { |
| 23: | $this->AuthenticationScheme = $authenticationScheme; |
| 24: | $this->Credential = $credential; |
| 25: | } |
| 26: | |
| 27: | |
| 28: | |
| 29: | |
| 30: | public function getAuthenticationScheme(): string |
| 31: | { |
| 32: | return $this->AuthenticationScheme; |
| 33: | } |
| 34: | |
| 35: | |
| 36: | |
| 37: | |
| 38: | public function getCredential(): string |
| 39: | { |
| 40: | return $this->Credential; |
| 41: | } |
| 42: | } |
| 43: | |