Zend\Config\Processor\Token
Synopsis
class Token
implements
ProcessorInterface
{
- // members
- protected string $prefix;
- protected string $suffix;
- protected array $tokens;
- protected array $map;
- // methods
- public Token __construct()
- public Token setPrefix()
- public string getPrefix()
- public Token setSuffix()
- public string getSuffix()
- public Token setTokens()
- public array getTokens()
- public Token addToken()
- public Token setToken()
- protected array buildMap()
- public Config process()
- public mixed processValue()
- private mixed doProcess()
Hierarchy
Members
protected
- $map
—
array
Replacement map - $prefix
—
string
Token prefix. - $suffix
—
string
Token suffix. - $tokens
—
array
The registry of tokens
Methods
private
- doProcess() — Applies replacement map to the given value by modifying the value itself
protected
- buildMap() — Build replacement map
public
- __construct() — Token Processor walks through a Config structure and replaces all occurrences of tokens with supplied values.
- addToken() — Add new token.
- getPrefix()
- getSuffix()
- getTokens() — Get current token registry.
- process() — Process
- processValue() — Process a single value
- setPrefix()
- setSuffix()
- setToken() — Add new token.
- setTokens() — Set token registry.