Plop
A simple logging library for PHP
Plop\Interpolator\Psr3 Class Reference

An interpolator that complies with the PSR-3 specification. More...

+ Inheritance diagram for Plop\Interpolator\Psr3:

Public Member Functions

 interpolate ($message, array $args=array())
 

Detailed Description

An interpolator that complies with the PSR-3 specification.

See also
http://www.php-fig.org/psr/psr-3/

Definition at line 31 of file Psr3.php.

Member Function Documentation

Plop\Interpolator\Psr3::interpolate (   $message,
array  $args = array() 
)

Interpolate percent-sequence-variables in a message.

Parameters
string$msgThe message that serves as the model for the result. It may refer to the values of variables dynamically using special formatting sequences.
array$args(optional) Associative array of values that will be dynamically replaced in the message. Defaults to an empty array.
Return values
stringThe message with all of its formatting-sequences replaced with their proper value.
Note
The following piece of code was almost taken as is from the PSR-3 documentation with the addition of a visibility keyword.

Implements Plop\InterpolatorInterface.

Definition at line 44 of file Psr3.php.


The documentation for this class was generated from the following file: