Path
FinalYes
Methods
- __construct() : mixed
- addPartitions() : self
- basename() : string
- basenamePrefix() : self
- context() : ResourceContext
- endsWith() : bool
- extension() : string|false
- filename() : string
- isEqual() : bool
- isLocal() : bool
- isPattern() : bool
- matches() : bool
- options() : Options
- parentDirectory() : self
- partitions() : Partitions
- partitionsPaths() : array<string|int, mixed>
- path() : string
- Difference between Path::uri and Path::path is that Path::uri returns path with scheme and Path::path returns path without scheme.
- protocol() : Protocol
- randomize() : self
- realpath() : self
- Turn relative path into absolute paths even when path does not exists or it's glob pattern.
- rootDirectoryName() : string|null
- setExtension() : self
- skipDirectories() : self|null
- staticPart() : self
- suffix() : self
- uri() : string
- Difference between Path::uri and Path::path is that Path::uri returns path with scheme and Path::path returns path without scheme.
Methods
__construct()
public
__construct(string $uri[, array<string, mixed>|Options $options = [] ]) : mixed
Parameters
- $uri : string
- $options : array<string, mixed>|Options = []
addPartitions()
public
addPartitions(Partition $partition, Partition ...$partitions) : self
Parameters
Return values
selfbasename()
public
basename() : string
Return values
stringbasenamePrefix()
public
basenamePrefix(string $prefix) : self
Parameters
- $prefix : string
Return values
selfcontext()
public
context() : ResourceContext
Return values
ResourceContextendsWith()
public
endsWith(string $string) : bool
Parameters
- $string : string
Return values
boolextension()
public
extension() : string|false
Return values
string|falsefilename()
public
filename() : string
Return values
stringisEqual()
public
isEqual(self $path) : bool
Parameters
- $path : self
Return values
boolisLocal()
public
isLocal() : bool
Return values
boolisPattern()
public
isPattern() : bool
Return values
boolmatches()
public
matches(self $path) : bool
Parameters
- $path : self
Return values
booloptions()
public
options() : Options
Return values
OptionsparentDirectory()
public
parentDirectory() : self
Return values
selfpartitions()
public
partitions() : Partitions
Return values
PartitionspartitionsPaths()
public
partitionsPaths() : array<string|int, mixed>
Return values
array<string|int, mixed>path()
Difference between Path::uri and Path::path is that Path::uri returns path with scheme and Path::path returns path without scheme.
public
path() : string
Return values
stringprotocol()
public
protocol() : Protocol
Return values
Protocolrandomize()
public
randomize() : self
Return values
selfrealpath()
Turn relative path into absolute paths even when path does not exists or it's glob pattern.
public
static realpath(string $path[, array<string, mixed>|Options $options = [] ]) : self
Parameters
- $path : string
- $options : array<string, mixed>|Options = []
Tags
Return values
selfrootDirectoryName()
public
rootDirectoryName() : string|null
Return values
string|nullsetExtension()
public
setExtension(string $extension) : self
Parameters
- $extension : string
Return values
selfskipDirectories()
public
skipDirectories(int $count) : self|null
Parameters
- $count : int
Return values
self|nullstaticPart()
public
staticPart() : self
Return values
selfsuffix()
public
suffix(string $string) : self
Parameters
- $string : string
Return values
selfuri()
Difference between Path::uri and Path::path is that Path::uri returns path with scheme and Path::path returns path without scheme.
public
uri() : string