Markup.php 541B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /*
  3. * This file is part of Twig.
  4. *
  5. * (c) 2010 Fabien Potencier
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. /**
  11. * Marks a content as safe.
  12. *
  13. * @package twig
  14. * @author Fabien Potencier <fabien@symfony.com>
  15. */
  16. class Twig_Markup
  17. {
  18. protected $content;
  19. public function __construct($content)
  20. {
  21. $this->content = (string) $content;
  22. }
  23. public function __toString()
  24. {
  25. return $this->content;
  26. }
  27. }