NullMessageTemplate.php 330 B

123456789101112131415161718
  1. <?php
  2. namespace Elgg\I18n;
  3. /**
  4. * WARNING: API IN FLUX. DO NOT USE DIRECTLY.
  5. *
  6. * A message that always ignores all parameters and just returns the template.
  7. *
  8. * @since 1.11
  9. *
  10. * @access private
  11. */
  12. final class NullMessage extends Message {
  13. /** @inheritDoc */
  14. public function format(array $args) {
  15. return "$this";
  16. }
  17. }