Interpolators
in package
Uses
NotInstanciable
FinalYes
Method Factories that provide some interpolator implementations.
Tags
Table of Contents
Methods
- null() : Interpolator
- Corresponds to the null Pattern implementation, that is an Interpolator doing nothing.
- recursive() : Interpolator
- An Interpolator that can substitute ${key} elements in a text by their corresponding value in the Configuration instance.
Methods
null()
Corresponds to the null Pattern implementation, that is an Interpolator doing nothing.
public
static null() : Interpolator
Note that the strict equals operator === can be used to test if an interpolator is a null() one.
Return values
Interpolatorrecursive()
An Interpolator that can substitute ${key} elements in a text by their corresponding value in the Configuration instance.
public
static recursive() : Interpolator
If a substitution contains more interpolations, then they are recursively processed. The Interpolator can't handles cycles: it will process forever (until php detect a too deep call stack).
Note that the strict equals operator === can be used to test if an interpolator is a recursive() one.
Return values
Interpolator —The interpolator.