/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Webapi/Backpressure/RestContext.php
142 строки
2 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2021 Adobe * All Rights Reserved. */ declare(strict_types=1); namespace Magento\Framework\Webapi\Backpressure; use Magento\Framework\App\Backpressure\ContextInterface; use Magento\Framework\App\RequestInterface; /** * REST request context */ class RestContext implements ContextInterface { /** * @var RequestInterface */ private RequestInterface $request; /** * @var string */ private string $identity; /** * @var int */ private int $identityType; /** * @var string */ private string $typeId; /** * @var string */ private string $service; /** * @var string */ private string $method; /** * @var string */ private string $endpoint; /** * @param RequestInterface $request * @param string $identity * @param int $identityType * @param string $typeId * @param string $service * @param string $method * @param string $endpoint */ public function __construct( RequestInterface $request, string $identity, int $identityType, string $typeId, string $service, string $method, string $endpoint ) { $this->request = $request; $this->identity = $identity; $this->identityType = $identityType; $this->typeId = $typeId; $this->service = $service; $this->method = $method; $this->endpoint = $endpoint; } /** * @inheritDoc */ public function getRequest(): RequestInterface { return $this->request; } /** * @inheritDoc */ public function getIdentity(): string { return $this->identity; } /** * @inheritDoc */ public function getIdentityType(): int { return $this->identityType; } /** * @inheritDoc */ public function getTypeId(): string { return $this->typeId; } /** * Service class name * * @return string */ public function getService(): string { return $this->service; } /** * Service method * * @return string */ public function getMethod(): string { return $this->method; } /** * Endpoint route * * @return string */ public function getEndpoint(): string { return $this->endpoint; } }