mirror of
https://github.com/phpmon/website
synced 2025-08-07 14:50:09 +02:00
20 lines
355 B
PHP
20 lines
355 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http;
|
|
|
|
final readonly class Redirection
|
|
{
|
|
public function __construct(
|
|
public string $url,
|
|
public string $target,
|
|
public string $name
|
|
) {}
|
|
|
|
public static function named($name, $url, $target): Redirection
|
|
{
|
|
return new Redirection($url, $target, $name);
|
|
}
|
|
}
|