interface AbsoluteWindowsPathInterface implements AbsoluteFileSystemPathInterface, WindowsPathInterface
The interface implemented by absolute Windows paths.
Methods
string|null |
drive()
Get this path's drive specifier. |
from WindowsPathInterface |
boolean |
hasDrive()
Determine whether this path has a drive specifier. |
from WindowsPathInterface |
boolean |
matchesDrive(string|null $drive)
Returns true if this path's drive specifier matches the supplied drive specifier. |
from WindowsPathInterface |
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. |
from WindowsPathInterface |
string|null |
joinDrive($drive)
Joins the supplied drive specifier to this path. |
from WindowsPathInterface |
Details
in WindowsPathInterface 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.
in WindowsPathInterface 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.
in WindowsPathInterface 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.
in WindowsPathInterface 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.
in WindowsPathInterface at line 72
public string|null
joinDrive($drive)
Joins the supplied drive specifier to this path.