diff --git a/Contracts/DomainHostInterface.php b/Contracts/DomainHostInterface.php index a6dd207..3f3cdee 100644 --- a/Contracts/DomainHostInterface.php +++ b/Contracts/DomainHostInterface.php @@ -65,6 +65,16 @@ public function prepend(Stringable|string $label): self; */ 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 $lenght = null): self; + /** * Returns an instance with its Root label. *