| 1 | <?php |
||
| 14 | class IssuedAtClaim extends RegisteredClaim |
||
| 15 | { |
||
| 16 | use NumericDateClaim; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Constructor. |
||
| 20 | * |
||
| 21 | * @param int $issue_time Issued at time as a unix timestamp |
||
| 22 | */ |
||
| 23 | 19 | public function __construct(int $issue_time) |
|
| 24 | { |
||
| 25 | 19 | parent::__construct(self::NAME_ISSUED_AT, $issue_time); |
|
|
2 ignored issues
–
show
|
|||
| 26 | 19 | } |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Initialize with time set to current time. |
||
| 30 | * |
||
| 31 | * @return self |
||
| 32 | */ |
||
| 33 | 1 | public static function now(): self |
|
| 36 | } |
||
| 37 | } |
||
| 38 |