قرینه از
https://github.com/matomo-org/matomo.git
synced 2025-08-21 22:47:43 +00:00
50 خطوط
1.0 KiB
PHP
50 خطوط
1.0 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Matomo - free/libre analytics platform
|
|
*
|
|
* @link https://matomo.org
|
|
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
|
*/
|
|
|
|
namespace Piwik\Plugins\UsersManager\TokenNotifications;
|
|
|
|
abstract class TokenNotification implements TokenNotificationInterface
|
|
{
|
|
/** @var string */
|
|
private $tokenId;
|
|
|
|
/** @var string */
|
|
private $tokenName;
|
|
|
|
/** @var string */
|
|
private $tokenCreationDate;
|
|
|
|
public function __construct(
|
|
string $tokenId,
|
|
string $tokenName,
|
|
string $tokenCreationDate
|
|
) {
|
|
$this->tokenId = $tokenId;
|
|
$this->tokenName = $tokenName;
|
|
$this->tokenCreationDate = $tokenCreationDate;
|
|
}
|
|
|
|
public function getTokenId(): string
|
|
{
|
|
return $this->tokenId;
|
|
}
|
|
|
|
public function getTokenName(): string
|
|
{
|
|
return $this->tokenName;
|
|
}
|
|
|
|
public function getTokenCreationDate(): string
|
|
{
|
|
return $this->tokenCreationDate;
|
|
}
|
|
|
|
abstract public function dispatch(): bool;
|
|
}
|