Version 1.0.0

This commit is contained in:
2025-07-13 00:10:45 +03:00
commit 42da8af363
35 changed files with 3468 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
namespace Diffhead\PHP\Url\Builder;
use Diffhead\PHP\Url\Builder;
use Diffhead\PHP\Url\Url;
class HostRelative implements Builder
{
public function __construct(
private string $hostname,
private string $scheme = '',
private int $port = 0
) {}
public function build(string $path, array $parameters = []): Url
{
return new Url(
$this->scheme,
$this->hostname,
$path,
$this->port,
$parameters
);
}
}