Initial commit, WIP.
This commit is contained in:
26
src/Auth/UserServiceKey.php
Normal file
26
src/Auth/UserServiceKey.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* User: junade
|
||||
* Date: 13/01/2017
|
||||
* Time: 18:01
|
||||
*/
|
||||
|
||||
namespace Cloudflare\API\Auth;
|
||||
|
||||
|
||||
class UserServiceKey implements Auth
|
||||
{
|
||||
private $userServiceKey;
|
||||
|
||||
public function __construct(String $userServiceKey)
|
||||
{
|
||||
$this->userServiceKey = $userServiceKey;
|
||||
}
|
||||
|
||||
public function getHeaders(): array
|
||||
{
|
||||
return [
|
||||
'X-Auth-User-Service-Key' => $this->userServiceKey,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user