Skip to content

Commit

Permalink
improve v5 documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Nov 16, 2017
1 parent ae0bc39 commit 1c9a9a1
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 115 deletions.
2 changes: 1 addition & 1 deletion docs/5.0/components/data-path.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ but also provide specific methods to work with Data URI paths.
<?php
class DataPath implements ComponentInterface
{
public function __construct(?string $content = null): void
public static function createFromPath(string $path): self
public function __construct(?string $content = null): void
public function getMediaType(void): string
public function getMimeType(void): string
public function getParameters(void): string
Expand Down
2 changes: 1 addition & 1 deletion docs/5.0/components/hierarchical-path.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class HierarchicalPath implements ComponentInterface, IteratorAggregate, Countab
{
const IS_RELATIVE = 0;
const IS_ABSOLUTE = 1;
public static function createFromSegments(iterable $data, int $type = self::IS_RELATIVE): self
public function __construct(?string $content = null): void
public function append(string $path): self
public static function createFromSegments($data, int $type = self::IS_RELATIVE): self
public function getBasename(void): string
public function getDirname(void): string
public function getExtension(void): string
Expand Down
6 changes: 3 additions & 3 deletions docs/5.0/components/host.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ class Host implements ComponentInterface, Countable, IteratorAggregate
{
const IS_ABSOLUTE = 1;
const IS_RELATIVE = 0;
public static function createFromIp(string $ip): self
public static function createFromLabels(iterable $data, int $type = self::IS_RELATIVE): self
public function __construct(?string $content = null): void
public function append(string $host): self
public static function createFromIp(string $ip): self
public static function createFromLabels($data, int $type = self::IS_RELATIVE): self
public function getIp(void): string
public function getLabel(int $offset, $default = null): mixed
public function getLabels(void): array
Expand Down Expand Up @@ -269,7 +269,7 @@ echo $newHost; //displays 'shop.11.be'
<?php
const Host::IS_RELATIVE = 0;
const Host::IS_ABSOLUTE = 1;
public static Host::createFromLabels($data, int $type = self::IS_RELATIVE): self
public static Host::createFromLabels(iterable $data, int $type = self::IS_RELATIVE): self
public Host::isAbsolute(void): bool
public Host::getLabels(void): array
public Host::getLabel(int $offset, $default = null): mixed
Expand Down
Loading

0 comments on commit 1c9a9a1

Please sign in to comment.