a177206cc762265c37c09b518cca0490cdf87e60
[yaffs-website] / vendor / twig / twig / lib / Twig / Sandbox / SecurityNotAllowedTagError.php
1 <?php
2
3 /*
4  * This file is part of Twig.
5  *
6  * (c) Fabien Potencier
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 /**
13  * Exception thrown when a not allowed tag is used in a template.
14  *
15  * @author Martin HasoĊˆ <martin.hason@gmail.com>
16  */
17 class Twig_Sandbox_SecurityNotAllowedTagError extends Twig_Sandbox_SecurityError
18 {
19     private $tagName;
20
21     public function __construct($message, $tagName, $lineno = -1, $filename = null, Exception $previous = null)
22     {
23         parent::__construct($message, $lineno, $filename, $previous);
24         $this->tagName = $tagName;
25     }
26
27     public function getTagName()
28     {
29         return $this->tagName;
30     }
31 }