mirror of
https://github.com/opdavies/glassboxx-sdk-php.git
synced 2025-02-17 22:50:48 +00:00
Refactor, add traits
This commit is contained in:
parent
506b5689fe
commit
0426632a08
4 changed files with 41 additions and 17 deletions
15
src/Glassboxx/Traits/UsesAuthTokenTrait.php
Normal file
15
src/Glassboxx/Traits/UsesAuthTokenTrait.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Opdavies\Glassboxx\Traits;
|
||||
|
||||
trait UsesAuthTokenTrait
|
||||
{
|
||||
public function withAuthToken(string $authToken): self
|
||||
{
|
||||
$this->authToken = $authToken;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue