mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-22 05:54:01 +00:00
Implement authorization checking for external api user using api key
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\WePost\DataTransferObjects;
|
||||
|
||||
use App\Classes\General\Interfaces\DataTransferObject;
|
||||
|
||||
|
||||
class WePostProcessNotificationObject implements DataTransferObject
|
||||
{
|
||||
/** @var string */
|
||||
private string $token;
|
||||
|
||||
/**
|
||||
* WePostProcessNotificationObject constructor.
|
||||
* @param string $token
|
||||
*/
|
||||
public function __construct(
|
||||
string $token
|
||||
) {
|
||||
$this->token = $token;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getToken(): string
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user