Skip to content

Commit

Permalink
Reduce BC break by honouring v6 arugment type on deptrecated classes
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Aug 5, 2023
1 parent 8443889 commit 7a760fb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Contracts/DomainHostInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 7a760fb

Please sign in to comment.