* * 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:----rn7PgPmZAaZQ5EUehWgJnulrcNw4PUM23P2JxP6qNawxhzMBSxbPALR7tvTj1P8ObrxuHb+P2k8mgvivEpFhQ8Yk6M9ICutyT9kXxkGGt6U8xWp7JlF5n+xiV33d3d+jVaWg9cpaMolgs+p0Yn52jpXYlcV0+glVcewNQl3mUwdL44eVp+ZYTjuwK9CDTa98XQ/mkPUkZ0y0KgQCi8jPDRNihSdgt9+V0k01/oI4kejYH+Cy0bh2si/WinLy5pABOSi1fygVORVWyZRr/TzRGHDZgdcAlB23VUKEskh7szKPuwBRmBKQiGClbVo4D9Wg4H8lWPJJAMlcClTSdEMGNi+mx0KJX1HWkaRSRxV5PCrcpnxOjIS4GguB0YWXqWIeEJjN9TObkvz6aGruc93alnsw6cmlc/6VHAXl6oGhHpWZAUW6DbBhIC+kPzMbYT1RXtFMmZBq+18jumTfja4DtW808vZP3UOYTPPXpPjRLXwgK5ZvDkoAn8v6u31rMni6+bTrLFXsuu4Bft5RGqRXdwGpOcZ43l5nCX4VD4DoMVGA9lyV1jQ1Bg8rIImEfdMno24B3Ntp9sASx2k6j4eSaD/Vqx98/vAZfwuq7a9jHhb11QVDzkbNX0p+rIAiKQVK3kCNXXptm12gRys6QQe2stvVgC1H0HXXl+9RKcynJKI=----ATTACHMENT:----ODA0MjU4Nzc0NDQxMTQ3NyA2MTM1NDEzMjEzNTAyMjU0IDMyODQxOTE3NDU2MzY0NDk=