You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,7 @@ public function Domain::getContent(): ?string
94
94
public function Domain::getPublicSuffix(): ?string
95
95
public function Domain::getRegistrableDomain(): ?string
96
96
public function Domain::getSubDomain(); ?string
97
+
public function Domain::isResolvable(): bool;
97
98
public function Domain::isKnown(): bool;
98
99
public function Domain::isICANN(): bool;
99
100
public function Domain::isPrivate(): bool;
@@ -157,11 +158,11 @@ The `Pdp\Rules` object is responsible for public suffix resolution for a given d
157
158
158
159
-`$domain` a domain name as a string
159
160
-`$section` a string which specifies which section of the PSL you want to validate the given domain against. The possible values are:
160
-
-`Rules::ALL_DOMAINS`, to validate against the full PSL.
161
161
-`Rules::ICANN_DOMAINS`, to validate against the PSL ICANN DOMAINS section only.
162
162
-`Rules::PRIVATE_DOMAINS`, to validate against the PSL PRIVATE DOMAINS section only.
163
+
- the empty string to validate against all the PSL sections.
163
164
164
-
By default, the `$section` argument is equal to `Rules::ALL_DOMAINS`. If an unsupported section is submitted a `Pdp\Exception` exception will be thrown.
165
+
By default, the `$section` argument is equal to the empty string. If an unsupported section is submitted a `Pdp\Exception` exception will be thrown.
165
166
166
167
While the `Pdp\Rules::resolve` returns a `Pdp\Domain` object, the `Pdp\Rules::getPublicSuffix` returns a `Pdp\PublicSuffix` object.
0 commit comments