/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Controller/ResultInterface.php
47 строк
1 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2014 Adobe * All Rights Reserved. */ namespace Magento\Framework\Controller; use Magento\Framework\App\ResponseInterface; /** * An abstraction of result that controller actions must return * The point of this kind of object is to encapsulate all information/objects relevant to the result * and be able to set it to the HTTP response * * @api * @since 100.0.2 */ interface ResultInterface { /** * @param int $httpCode * @return $this */ public function setHttpResponseCode($httpCode); /** * Set a header * * If $replace is true, replaces any headers already defined with that * $name. * * @param string $name * @param string $value * @param boolean $replace * @return $this */ public function setHeader($name, $value, $replace = false); /** * Render result and set to response * * @param ResponseInterface $response * @return $this */ public function renderResult(ResponseInterface $response); }