DefinitionConfiguration uses RawConfigurationTrait

Read onlyYes
FinalYes

Identified, open configuration definition from a prototype registry.

Internal

Table of Contents

Properties

$identifier  : string
$raw  : array<string|int, mixed>

Methods

__construct()  : mixed
fromArray()  : self
get()  : mixed
Read a value from the raw configuration using a dot-separated path.
getRaw()  : array<string, mixed>
Return the complete raw configuration array this DTO was built from.
has()  : bool
Check whether the given dot-separated path exists in the raw configuration.

Properties

Methods

__construct()

public __construct(string $identifier, array<string, mixed> $raw) : mixed
Parameters
$identifier : string
$raw : array<string, mixed>

fromArray()

public static fromArray(string $identifier, array<string, mixed> $configuration) : self
Parameters
$identifier : string
$configuration : array<string, mixed>
Return values
self

get()

Read a value from the raw configuration using a dot-separated path.

public get(string $path[, mixed $default = null ]) : mixed

Example: $dto->get('formEditor.dynamicJavaScriptModules.app').

Parameters
$path : string
$default : mixed = null

getRaw()

Return the complete raw configuration array this DTO was built from.

public getRaw() : array<string, mixed>

Use this to reach custom keys that are not (yet) mapped to typed properties, e.g. properties registered by third-party extensions.

Return values
array<string, mixed>

has()

Check whether the given dot-separated path exists in the raw configuration.

public has(string $path) : bool
Parameters
$path : string
Return values
bool
On this page

Search results