Path

in package

Value Object for paths.

This can be absolute or relative.

Properties

private$path  : string                

Methods

Initializes the path.

public__construct(string $path) : mixed

Parameters

$path : string

Returns

mixed

Verifies if another Path object has the same identity as this one.

publicequals(self $otherPath) : bool

Parameters

$otherPath : self

Returns

bool

returns a string representation of the path.

public__toString() : string

Returns

string

Returns whether the file path is an absolute path.

publicstaticisAbsolutePath(string $file) : bool

Parameters

$file : string

A file path

Returns

bool

publicstaticdirname(Path $input) : self

Parameters

$input : Path

Returns

self