PHP 8.2.30
Preview: TemplateReferenceInterface.php Size: 1.93 KB
//opt/cloudlinux/alt-php55/root/usr/share/pear/Symfony/Component/Templating/TemplateReferenceInterface.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Templating;

/**
 * Interface to be implemented by all templates.
 *
 * @author Victor Berchet <victor@suumit.com>
 *
 * @api
 */
interface TemplateReferenceInterface
{
    /**
     * Gets the template parameters.
     *
     * @return array An array of parameters
     *
     * @api
     */
    public function all();

    /**
     * Sets a template parameter.
     *
     * @param string $name  The parameter name
     * @param string $value The parameter value
     *
     * @return TemplateReferenceInterface The TemplateReferenceInterface instance
     *
     * @throws  \InvalidArgumentException if the parameter name is not supported
     *
     * @api
     */
    public function set($name, $value);

    /**
     * Gets a template parameter.
     *
     * @param string $name The parameter name
     *
     * @return string The parameter value
     *
     * @throws  \InvalidArgumentException if the parameter name is not supported
     *
     * @api
     */
    public function get($name);

    /**
     * Returns the path to the template.
     *
     * By default, it just returns the template name.
     *
     * @return string A path to the template or a resource
     *
     * @api
     */
    public function getPath();

    /**
     * Returns the "logical" template name.
     *
     * The template name acts as a unique identifier for the template.
     *
     * @return string The template name
     *
     * @api
     */
    public function getLogicalName();

    /**
     * Returns the string representation as shortcut for getLogicalName().
     *
     * Alias of getLogicalName().
     *
     * @return string The template name
     *
     * @api
     */
    public function __toString();
}

Directory Contents

Dirs: 4 × Files: 10

Name Size Perms Modified Actions
Asset DIR
- drwxr-xr-x 2024-03-03 22:54:39
Edit Download
Helper DIR
- drwxr-xr-x 2024-03-03 22:54:39
Edit Download
Loader DIR
- drwxr-xr-x 2024-03-03 22:54:39
Edit Download
Storage DIR
- drwxr-xr-x 2024-03-03 22:54:39
Edit Download
340 B lrw-r--r-- 2019-12-18 11:24:07
Edit Download
694 B lrw-r--r-- 2019-12-18 11:24:07
Edit Download
2.77 KB lrw-r--r-- 2019-12-18 11:24:07
Edit Download
2.18 KB lrw-r--r-- 2019-12-18 11:24:07
Edit Download
15.37 KB lrw-r--r-- 2019-12-18 11:24:07
Edit Download
1.00 KB lrw-r--r-- 2019-12-18 11:24:07
Edit Download
988 B lrw-r--r-- 2019-12-18 11:24:07
Edit Download
811 B lrw-r--r-- 2019-12-18 11:24:07
Edit Download
1.87 KB lrw-r--r-- 2019-12-18 11:24:07
Edit Download
1.93 KB lrw-r--r-- 2019-12-18 11:24:07
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).