mirror of
https://github.com/phpmon/website
synced 2025-08-07 06:40:08 +02:00
16 lines
335 B
PHP
16 lines
335 B
PHP
<?php
|
|
|
|
namespace App\Http;
|
|
|
|
class Redirection
|
|
{
|
|
public function __construct(
|
|
public readonly string $url,
|
|
public readonly string $target,
|
|
public readonly string $name
|
|
) {}
|
|
|
|
public static function named($name, $url, $target): Redirection {
|
|
return new Redirection($url, $target,$name);
|
|
}
|
|
} |