ThemeDirectoryRoot

Implements \ThemeDirectoryRootInterface

Class ThemeDirectoryRoot

package

Default

Methods

ThemeDirectoryRoot constructor.

__construct(\ExistingDirectory $root) 

Arguments

$root

\ExistingDirectory

Absolute path to theme directories root.

Named constructor of ThemeDirectoryRoot.

create(\ExistingDirectory $root) : \ThemeDirectoryRoot
static

Arguments

$root

\ExistingDirectory

Absolute path to theme directories root.

Response

\ThemeDirectoryRoot

New instance.

Returns an absolute path, which represents a theme directory.

getPath() : string

Response

string

hasPath

hasPath(string $path) : mixed

Arguments

$path

string

path to be checked

Response

mixed

Appends the given path to the internal theme path and returns a new ThemeDirectoryRoot instance.

withPath(string $path) : \ThemeDirectoryRootInterface

Arguments

$path

string

Path to append.

Response

\ThemeDirectoryRootInterface

New instance.

Properties

path

path : string
var

Type(s)

string