LocalPath
Model representing an absolute or relative path in the local file system
Table of Contents
Constants
- TYPE_ABSOLUTE = 1
- TYPE_RELATIVE = 2
Properties
Methods
- __construct() : mixed
- getAbsolute() : string
- getRaw() : string
- getRelative() : string|null
- isAbsolute() : bool
- isRelative() : bool
Constants
TYPE_ABSOLUTE
public
mixed
TYPE_ABSOLUTE
= 1
TYPE_RELATIVE
public
mixed
TYPE_RELATIVE
= 2
Properties
$absolute
protected
string
$absolute
$raw
protected
string
$raw
$relative
protected
string|null
$relative
$type
protected
int
$type
Methods
__construct()
public
__construct(string $value, int $type) : mixed
Parameters
- $value : string
- $type : int
getAbsolute()
public
getAbsolute() : string
Return values
string —(calculated) absolute path
getRaw()
public
getRaw() : string
Return values
string —normalize path as provided
getRelative()
public
getRelative() : string|null
Return values
string|null —(calculated) relative path to public path - null
if outside public path
isAbsolute()
public
isAbsolute() : bool
Return values
boolisRelative()
public
isRelative() : bool