Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m14s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 1m12s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 1m7s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 1m19s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m22s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 1m32s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m35s
CI / Build-Artefakte aktuell (pull_request) Failing after 1m7s
- Laravel 13 mit Filament 5 (Admin), Inertia 3 + Vue 3 + Vuetify 4 (Material 3) - Anmeldung über Fortify (Login, Passwort vergessen/ändern), keine Selbstregistrierung - Profil mit Profilbild (WebP in festen Größen), Personenseiten, Header mit Avatar-Menü - Material-3-Farbschema aus der Primärfarbe, hell/dunkel/System pro Person - Basis-Branding (Portalname, Logo, Primärfarbe) im Admin unter „Erscheinungsbild“ - Benutzerverwaltung im Admin, Zugang vorläufig über is_admin - vendor/ (ohne Dev-Pakete) und Frontend-Build mitversioniert, Dev-Pakete in vendor-dev/ - PHPUnit-Tests gegen MySQL/MariaDB, Forgejo-CI-Matrix, Docker-Entwicklungsumgebung - VERSION, CHANGELOG.md und CONTRIBUTING.md mit Release-Ablauf Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
125 lines
4.1 KiB
PHP
125 lines
4.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* League.Uri (https://uri.thephpleague.com)
|
|
*
|
|
* (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace League\Uri\Contracts;
|
|
|
|
use BackedEnum;
|
|
use Countable;
|
|
use Iterator;
|
|
use IteratorAggregate;
|
|
use League\Uri\Exceptions\SyntaxError;
|
|
use Stringable;
|
|
|
|
/**
|
|
* @extends IteratorAggregate<int, string>
|
|
*
|
|
* @method bool isSubdomainOf(BackedEnum|Stringable|string|null $parentHost) Tells whether the current domain instance is a subdomain of the parent host.
|
|
* @method bool hasSubdomain(BackedEnum|Stringable|string|null $childHost) Tells whether the submitted host is a subdomain of the current instance.
|
|
* @method bool isSiblingOf(BackedEnum|Stringable|string|null $siblingHost) Tells whether the submitted host share the same parent domain as the current instance.
|
|
* @method static commonAncestorWith(BackedEnum|Stringable|string|null $other) Returns the common longest ancestor between 2 domain. The returned domain is empty if no ancestor is found
|
|
* @method static parentHost() Returns the current parent domain for the current instance. The returned domain is empty if no ancestor is found
|
|
* @method bool isEmpty() Tells whether the domain contains any label.
|
|
*/
|
|
interface DomainHostInterface extends Countable, HostInterface, IteratorAggregate
|
|
{
|
|
/**
|
|
* Returns the labels total number.
|
|
*/
|
|
public function count(): int;
|
|
|
|
/**
|
|
* Iterate over the Domain labels.
|
|
*
|
|
* @return Iterator<string>
|
|
*/
|
|
public function getIterator(): Iterator;
|
|
|
|
/**
|
|
* Retrieves a single host label.
|
|
*
|
|
* If the label offset has not been set, returns the null value.
|
|
*/
|
|
public function get(int $offset): ?string;
|
|
|
|
/**
|
|
* Returns the associated key for a specific label or all the keys.
|
|
*
|
|
* @return int[]
|
|
*/
|
|
public function keys(?string $label = null): array;
|
|
|
|
/**
|
|
* Tells whether the domain is absolute.
|
|
*/
|
|
public function isAbsolute(): bool;
|
|
|
|
/**
|
|
* Prepends a label to the host.
|
|
*/
|
|
public function prepend(Stringable|string $label): self;
|
|
|
|
/**
|
|
* Appends a label to the host.
|
|
*/
|
|
public function append(Stringable|string $label): self;
|
|
|
|
/**
|
|
* Extracts a slice of $length elements starting at position $offset from the host.
|
|
*
|
|
* This method MUST retain the state of the current instance, and return
|
|
* an instance that contains the selected slice.
|
|
*
|
|
* If $length is null it returns all elements from $offset to the end of the Domain.
|
|
*/
|
|
public function slice(int $offset, ?int $length = null): self;
|
|
|
|
/**
|
|
* Returns an instance with its Root label.
|
|
*
|
|
* @see https://tools.ietf.org/html/rfc3986#section-3.2.2
|
|
*/
|
|
public function withRootLabel(): self;
|
|
|
|
/**
|
|
* Returns an instance without its Root label.
|
|
*
|
|
* @see https://tools.ietf.org/html/rfc3986#section-3.2.2
|
|
*/
|
|
public function withoutRootLabel(): self;
|
|
|
|
/**
|
|
* Returns an instance with the modified label.
|
|
*
|
|
* This method MUST retain the state of the current instance, and return
|
|
* an instance that contains the new label
|
|
*
|
|
* If $key is non-negative, the added label will be the label at $key position from the start.
|
|
* If $key is negative, the added label will be the label at $key position from the end.
|
|
*
|
|
* @throws SyntaxError If the key is invalid
|
|
*/
|
|
public function withLabel(int $key, Stringable|string $label): self;
|
|
|
|
/**
|
|
* Returns an instance without the specified label.
|
|
*
|
|
* This method MUST retain the state of the current instance, and return
|
|
* an instance that contains the modified component
|
|
*
|
|
* If $key is non-negative, the removed label will be the label at $key position from the start.
|
|
* If $key is negative, the removed label will be the label at $key position from the end.
|
|
*
|
|
* @throws SyntaxError If the key is invalid
|
|
*/
|
|
public function withoutLabel(int ...$keys): self;
|
|
}
|