23 lines
518 B
PHP
23 lines
518 B
PHP
<?php
|
|
|
|
namespace App\Libraries;
|
|
|
|
use App\Services\Staff\StaffTimeOffLinkService as StaffTimeOffLinkTokenService;
|
|
|
|
class StaffTimeOffLinkService
|
|
{
|
|
public function __construct(private StaffTimeOffLinkTokenService $service = new StaffTimeOffLinkTokenService())
|
|
{
|
|
}
|
|
|
|
public function createToken(array $payload): string
|
|
{
|
|
return $this->service->createToken($payload);
|
|
}
|
|
|
|
public function parseToken(?string $token): ?array
|
|
{
|
|
return $this->service->parseToken($token);
|
|
}
|
|
}
|