![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/framework/Controller/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ 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); }