Skip to content

Commit 7c2a8bb

Browse files
author
Andrey Helldar
authored
Merge pull request #22 from TheDragonCode/2.x
Added `Http\Builder::getBaseDomain()` and `Http\Builder::getDomainLevel()` contracts
2 parents 839542d + 3894ee7 commit 7c2a8bb

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/Http/Builder.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,20 @@ public function parsed(array $parsed): self;
5252
*/
5353
public function getDomain(): string;
5454

55+
/**
56+
* Retrieve the domain level name of the URI.
57+
*
58+
* @return string
59+
*/
60+
public function getDomainLevel(int $level = 0): string;
61+
62+
/**
63+
* Retrieve the base domain name of the URI.
64+
*
65+
* @return string
66+
*/
67+
public function getBaseDomain(): string;
68+
5569
/**
5670
* Retrieve the subdomain name of the URI.
5771
*
@@ -86,7 +100,7 @@ public function getPassword(): string;
86100
* @return \DragonCode\Contracts\Http\Builder
87101
*/
88102
public function removeFragment(): self;
89-
103+
90104
/**
91105
* Retrieve the query array of the URI.
92106
*

0 commit comments

Comments
 (0)