SprintfMessageTemplate.php 367 B

123456789101112131415161718
  1. <?php
  2. namespace Elgg\I18n;
  3. /**
  4. * WARNING: API IN FLUX. DO NOT USE DIRECTLY.
  5. *
  6. * A message that uses vsprintf to insert arguments into the template.
  7. *
  8. * @since 1.11
  9. *
  10. * @access private
  11. */
  12. final class SprintfMessageTemplate extends MessageTemplate {
  13. /** @inheritDoc */
  14. public function format(array $args) {
  15. return \vsprintf($this->template, $args);
  16. }
  17. }