interface WindowsPathInterface implements FileSystemPathInterface
The interface implemented by all Windows paths.
Methods
string|null |
drive()
Get this path's drive specifier. |
|
boolean |
hasDrive()
Determine whether this path has a drive specifier. |
|
boolean |
matchesDrive(string|null $drive)
Returns true if this path's drive specifier matches the supplied drive specifier. |
|
boolean |
matchesDriveOrNull(string|null $drive)
Returns true if this path's drive specifier matches the supplied drive specifier, or if either drive specifier is null. |
|
string|null |
joinDrive($drive)
Joins the supplied drive specifier to this path. |
Details
at line 29
public string|null
drive()
Get this path's drive specifier.
Absolute Windows paths always have a drive specifier, and will never return null for this method.
at line 39
public boolean
hasDrive()
Determine whether this path has a drive specifier.
Absolute Windows paths always have a drive specifier, and will always return true for this method.
at line 51
public boolean
matchesDrive(string|null $drive)
Returns true if this path's drive specifier matches the supplied drive specifier.
This method is not case sensitive.
at line 63
public boolean
matchesDriveOrNull(string|null $drive)
Returns true if this path's drive specifier matches the supplied drive specifier, or if either drive specifier is null.
This method is not case sensitive.
at line 72
public string|null
joinDrive($drive)
Joins the supplied drive specifier to this path.