ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
+78
View File
@@ -0,0 +1,78 @@
<?php
declare(strict_types=1);
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Admin Actions Log for Magento 2
*/
namespace Amasty\AdminActionsLog\Logging;
use Amasty\AdminActionsLog\Api\Logging\MetadataInterface;
use Magento\Framework\App\RequestInterface;
class Metadata implements MetadataInterface
{
/**
* @var RequestInterface
*/
private $request;
/**
* @var string
*/
private $eventName;
/**
* @var object|null
*/
private $loggingObject;
/**
* @var string|null
*/
private $storageEntityKey;
public function __construct(
RequestInterface $request,
string $eventName,
object $loggingObject = null,
string $storageEntityKey = null
) {
$this->request = $request;
$this->eventName = $eventName;
$this->loggingObject = $loggingObject;
$this->storageEntityKey = $storageEntityKey;
}
/**
* @inheritdoc
*/
public function getRequest(): RequestInterface
{
return $this->request;
}
/**
* @inheritdoc
*/
public function getObject(): ?object
{
return $this->loggingObject;
}
/**
* @inheritdoc
*/
public function getEventName(): string
{
return $this->eventName;
}
public function getStorageEntityKey(): ?string
{
return $this->storageEntityKey;
}
}