/
jagepard
/
Rudra-Redirect
Обзор
Документация
Войти
/
jagepard
/
Rudra-Redirect
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/RedirectInterface.php
19 строк
580 B
Jagepard
refactor(Redirect)!: simplify API by removing type system and add back() method
24 июл 2026, 11:01
24 июл 2026, 11:01
5bb7e97
Код
Авторство
О чём код?
<?php /** * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. * * @author Korotkov Danila (Jagepard) <jagepard@yandex.ru> * @license https://mozilla.org/MPL/2.0/ MPL-2.0 */ namespace Rudra\Redirect; interface RedirectInterface { public function run(string $url = '', int $code = 302): void; public function responseCode(int $code): void; public function back(string $fallback = '', int $code = 302): void; }