| 1 | <?php  | 
            ||
| 14 | trait Interpolator  | 
            ||
| 15 | { | 
            ||
| 16 | |||
| 17 | /**  | 
            ||
| 18 | * Interpolates context values into the message placeholders.  | 
            ||
| 19 | *  | 
            ||
| 20 | * @param string $message  | 
            ||
| 21 | * The message containing placeholders  | 
            ||
| 22 | * @param array $context  | 
            ||
| 23 | * The context array containing the replacers  | 
            ||
| 24 | *  | 
            ||
| 25 | * @return string The interpolated message  | 
            ||
| 26 | */  | 
            ||
| 27 | 70 | private static function interpolate($message, array $context = array()): string  | 
            |
| 39 | }  | 
            ||
| 40 |