misc_pterodactyl-panel/app/Extensions/Laravel/Sanctum/NewAccessToken.php

23 lines
559 B
PHP

<?php
namespace Pterodactyl\Extensions\Laravel\Sanctum;
use Pterodactyl\Models\ApiKey;
use Laravel\Sanctum\NewAccessToken as SanctumAccessToken;
/**
* @property \Pterodactyl\Models\ApiKey $accessToken
*/
class NewAccessToken extends SanctumAccessToken
{
/**
* NewAccessToken constructor.
*
* @noinspection PhpMissingParentConstructorInspection
*/
public function __construct(ApiKey $accessToken, string $plainTextToken)
{
$this->accessToken = $accessToken;
$this->plainTextToken = $plainTextToken;
}
}