/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/App/Request/Backpressure/ControllerContext.php
107 строк
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\App\Request\Backpressure; use Magento\Framework\App\ActionInterface; use Magento\Framework\App\Backpressure\ContextInterface; use Magento\Framework\App\RequestInterface; /** * Controller request context */ class ControllerContext implements ContextInterface { /** * @var RequestInterface */ private RequestInterface $request; /** * @var string */ private string $identity; /** * @var int */ private int $identityType; /** * @var string */ private string $typeId; /** * @var ActionInterface */ private ActionInterface $action; /** * @param RequestInterface $request * @param string $identity * @param int $identityType * @param string $typeId * @param ActionInterface $action */ public function __construct( RequestInterface $request, string $identity, int $identityType, string $typeId, ActionInterface $action ) { $this->request = $request; $this->identity = $identity; $this->identityType = $identityType; $this->typeId = $typeId; $this->action = $action; } /** * @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; } /** * Controller instance * * @return ActionInterface */ public function getAction(): ActionInterface { return $this->action; } }