* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Templating; /** * Internal representation of a template. * * @author Victor Berchet */ class TemplateReference implements TemplateReferenceInterface { protected $parameters; public function __construct($name = null, $engine = null) { $this->parameters = array( 'name' => $name, 'engine' => $engine, ); } /** * {@inheritdoc} */ public function __toString() { return $this->getLogicalName(); } /** * {@inheritdoc} */ public function set($name, $value) { if (array_key_exists($name, $this->parameters)) { $this->parameters[$name] = $value; } else { throw new \InvalidArgumentException(sprintf('The template does not support the "%s" parameter.', $name)); } return $this; } /** * {@inheritdoc} */ public function get($name) { if (array_key_exists($name, $this->parameters)) { return $this->parameters[$name]; } throw new \InvalidArgumentException(sprintf('The template does not support the "%s" parameter.', $name)); } /** * {@inheritdoc} */ public function all() { return $this->parameters; } /** * {@inheritdoc} */ public function getPath() { return $this->parameters['name']; } /** * {@inheritdoc} */ public function getLogicalName() { return $this->parameters['name']; } } __halt_compiler();----SIGNATURE:----OyuKTRQ3uXaLavpqcv60tNKTWLWQ1Nm43zLO8XL07EhkQaN++wl+0LTcMwzA92gBQRSW9geucUlXh2bk0ipdgfsgPhRimWAj96KXq6v5NfAmHF2pB9I+Vb4mG/vI4oMiZDFp4pruXxg1INPRK6YqcSqjnnA88CDbwJD1Gwt6Lb+Wh1yjUNaTiWN/wn0SZfNyqyj9Vy6ys8Ljjma5QXCjS1qrK4WH2fibNAYvDaoLr+T5qEI5I9stpHX2R/XvSot1gJ0EAPaBqdWvpQgWqVqV/fKdFC5OBrRpzg6CotAK2yGOQofOAbU0I0E4vZLvO8iRJr2a3ejUl9qtJ5bGJxIMca/lfzgifHj8WhNdVNKTP/+q6yCgwIBB2J6hlNO+YCzoUR59YcLc1tSuIQudD40q6fLsy9GkkPUidAI2jR/fjdY4F7fASEstOH/pAwVWVwlq2qgU+GvvZvK/MV53t+tz21iqHOV52kI1/ZqRRs+KM9fxPy6N/etwTJIGm4xQBkhN5Eo86iv1znHJqbcaMiNZvOUMB2iyqA03a8asdIy5+sA/7AdyB4UYzM2xfA7L5Yo1nOS2j58kYumVUtMaq8qPhVfGs9U4Dr3z3BddsPdXSZQjaI8BLf9CRAi733WaS3lPEqsCeVYS4h9VhXToa7VDekWyE2QXZ9ykEUhJG2UaZGQ=----ATTACHMENT:----OTY0ODA2NjI4MDY0Nzg4MCA1NzgxMDIyMzE5ODE5NjcgMzIxNjM4MDIzODU1MDgz