The start of something beautiful
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Lexik\Bundle\JWTAuthenticationBundle\Signature;
|
||||
|
||||
/**
|
||||
* Object representation of a newly created JSON Web Signature.
|
||||
*
|
||||
* @author Robin Chalas <robin.chalas@gmail.com>
|
||||
*/
|
||||
final class CreatedJWS
|
||||
{
|
||||
private string $token;
|
||||
private bool $signed;
|
||||
|
||||
public function __construct(string $token, bool $isSigned)
|
||||
{
|
||||
$this->token = $token;
|
||||
$this->signed = $isSigned;
|
||||
}
|
||||
|
||||
public function isSigned(): bool
|
||||
{
|
||||
return $this->signed;
|
||||
}
|
||||
|
||||
public function getToken(): string
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user