ValueFromReferenceArrayProcessor implements PlaceholderProcessorInterface

Returns the value for a placeholder as fetched from the referenceArray

Class ValueFromReferenceArrayProcessor

Table of Contents

Interfaces

PlaceholderProcessorInterface

Methods

canProcess()  : bool
process()  : array<string|int, mixed>|mixed|string
Returns the value for a placeholder as fetched from the referenceArray

Methods

canProcess()

public canProcess(string $placeholder, array<string|int, mixed> $referenceArray) : bool
Parameters
$placeholder : string
$referenceArray : array<string|int, mixed>
Return values
bool

process()

Returns the value for a placeholder as fetched from the referenceArray

public process(string $value, array<string|int, mixed> $referenceArray) : array<string|int, mixed>|mixed|string
Parameters
$value : string

the string to search for

$referenceArray : array<string|int, mixed>

the main configuration array where to look up the data

Return values
array<string|int, mixed>|mixed|string

        
On this page

Search results