From 065272e4020bc5d29692bc0238a26fba42f8b466 Mon Sep 17 00:00:00 2001 From: Ignace Nyamagana Butera Date: Wed, 29 Nov 2017 17:32:53 +0100 Subject: [PATCH] update documentation --- docs/5.0/components/host.md | 6 +++--- docs/5.0/components/path.md | 4 ++-- docs/5.0/components/userinfo.md | 5 +++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/5.0/components/host.md b/docs/5.0/components/host.md index bab40234..22f0f1ef 100644 --- a/docs/5.0/components/host.md +++ b/docs/5.0/components/host.md @@ -37,12 +37,12 @@ class Host implements ComponentInterface, Countable, IteratorAggregate public function keys([string $label]): array public function prepend(string $host): self public function replaceLabel(int $offset, string $host): self + public function withoutLabels(array $offsets): self + public function withoutRootLabel(void): self public function withoutZoneIdentifier(void): self public function withRegisterableDomain(string $host): self - public function withSubDomain(string $host): self public function withRootLabel(void): self - public function withoutRootLabel(void): self - public function withoutLabels(array $offsets): self + public function withSubDomain(string $host): self } ~~~ diff --git a/docs/5.0/components/path.md b/docs/5.0/components/path.md index 32466926..478e1787 100644 --- a/docs/5.0/components/path.md +++ b/docs/5.0/components/path.md @@ -15,11 +15,11 @@ class Path implements ComponentInterface { public function isAbsolute(void): bool public function withLeadingSlash(void): self - public function withoutLeadingSlash(void): self public function withoutDotSegments(void): self - public function withTrailingSlash(void): self + public function withoutLeadingSlash(void): self public function withoutTrailingSlash(void): self public function withoutEmptySegments(void): self + public function withTrailingSlash(void): self } ~~~ diff --git a/docs/5.0/components/userinfo.md b/docs/5.0/components/userinfo.md index efd3749d..aec27a48 100644 --- a/docs/5.0/components/userinfo.md +++ b/docs/5.0/components/userinfo.md @@ -13,8 +13,9 @@ The library provides a `UserInfo` class to ease user information creation and ma class UserInfo implements ComponentInterface { - public getUser(int $enc_type = self::RFC3986_ENCODING): ?string - public getPass(int $enc_type = self::RFC3986_ENCODING): ?string + public function getUser(int $enc_type = self::RFC3986_ENCODING): ?string + public function getPass(int $enc_type = self::RFC3986_ENCODING): ?string + public function withUserInfo(string $user, ?string $password = null): self } ~~~