ThemeDirectoryRoot
in package
implements
ThemeDirectoryRootInterface
Class ThemeDirectoryRoot
Interfaces, Classes and Traits
- ThemeDirectoryRootInterface
- Interface ThemeDirectoryRootInterface
Table of Contents
- $path : string
- __construct() : mixed
- ThemeDirectoryRoot constructor.
- create() : ThemeDirectoryRoot
- Named constructor of ThemeDirectoryRoot.
- getPath() : string
- Returns an absolute path, which represents a theme directory.
- hasPath() : mixed
- withPath() : ThemeDirectoryRootInterface
- Appends the given path to the internal theme path and returns a new ThemeDirectoryRoot instance.
Properties
$path
protected
string
$path
Methods
__construct()
ThemeDirectoryRoot constructor.
public
__construct(ExistingDirectory $root) : mixed
Parameters
- $root : ExistingDirectory
-
Absolute path to theme directories root.
Return values
mixed —create()
Named constructor of ThemeDirectoryRoot.
public
static create(ExistingDirectory $root) : ThemeDirectoryRoot
Parameters
- $root : ExistingDirectory
-
Absolute path to theme directories root.
Return values
ThemeDirectoryRoot —New instance.
getPath()
Returns an absolute path, which represents a theme directory.
public
getPath() : string
Return values
string —hasPath()
public
hasPath(string $path) : mixed
Parameters
- $path : string
-
path to be checked
Return values
mixed —withPath()
Appends the given path to the internal theme path and returns a new ThemeDirectoryRoot instance.
public
withPath(string $path) : ThemeDirectoryRootInterface
Parameters
- $path : string
-
Path to append.
Return values
ThemeDirectoryRootInterface —New instance.