Flow PHP

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 = []

basename()

public basename() : string
Return values
string

basenamePrefix()

public basenamePrefix(string $prefix) : self
Parameters
$prefix : string
Return values
self

endsWith()

public endsWith(string $string) : bool
Parameters
$string : string
Return values
bool

extension()

public extension() : string|false
Return values
string|false

filename()

public filename() : string
Return values
string

isEqual()

public isEqual(self $path) : bool
Parameters
$path : self
Return values
bool

isLocal()

public isLocal() : bool
Return values
bool

isPattern()

public isPattern() : bool
Return values
bool

matches()

public matches(self $path) : bool
Parameters
$path : self
Return values
bool

parentDirectory()

public parentDirectory() : self
Return values
self

partitionsPaths()

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
string

randomize()

public randomize() : self
Return values
self

realpath()

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
throws
InvalidArgumentException
throws
RuntimeException
Return values
self

rootDirectoryName()

public rootDirectoryName() : string|null
Return values
string|null

setExtension()

public setExtension(string $extension) : self
Parameters
$extension : string
Return values
self

skipDirectories()

public skipDirectories(int $count) : self|null
Parameters
$count : int
Return values
self|null

staticPart()

public staticPart() : self
Return values
self

suffix()

public suffix(string $string) : self
Parameters
$string : string
Return values
self

uri()

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
Return values
string

        
On this page

Search results