summaryrefslogtreecommitdiff
path: root/inc/lib/Twig/Markup.php
blob: c1a1469cf8ca24950da7f4c36afe288574e83d71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php

/*
 * This file is part of Twig.
 *
 * (c) 2010 Fabien Potencier
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * Marks a content as safe.
 *
 * @package    twig
 * @author     Fabien Potencier <fabien@symfony.com>
 */
class Twig_Markup
{
    protected $content;

    public function __construct($content)
    {
        $this->content = (string) $content;
    }

    public function __toString()
    {
        return $this->content;
    }
}