composer package updates
[openemr.git] / vendor / twig / twig / lib / Twig / Sandbox / SecurityNotAllowedPropertyError.php
blobf27969c155bf939f5dd97a7f321aeea1fffbf714
1 <?php
3 /*
4 * This file is part of Twig.
6 * (c) Fabien Potencier
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 /**
13 * Exception thrown when a not allowed class property is used in a template.
15 * @author Kit Burton-Senior <mail@kitbs.com>
17 class Twig_Sandbox_SecurityNotAllowedPropertyError extends Twig_Sandbox_SecurityError
19 private $className;
20 private $propertyName;
22 public function __construct($message, $className, $propertyName, $lineno = -1, $filename = null, Exception $previous = null)
24 parent::__construct($message, $lineno, $filename, $previous);
25 $this->className = $className;
26 $this->propertyName = $propertyName;
29 public function getClassName()
31 return $this->className;
34 public function getPropertyName()
36 return $this->propertyName;
40 class_alias('Twig_Sandbox_SecurityNotAllowedPropertyError', 'Twig\Sandbox\SecurityNotAllowedPropertyError', false);