Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
<?php
declare(strict_types=1);
namespace Korobochkin\WPKit\MetaBoxes;
use Twig\Environment;
/**
 * Interface MetaBoxTwigViewInterface
 */
interface MetaBoxTwigViewInterface extends MetaBoxViewInterface
{
    /**
     * Returns template name (path).
     *
     * @return string Template.
     */
    public function getTemplate();
    /**
     * Sets template name (path).
     *
     * @param string $template name or path to template.
     *
     * @return $this For chain calls.
     */
    public function setTemplate($template);
    /**
     * Returns values (variables) for templates.
     *
     * @return array Values for View instance.
     */
    public function getContext();
    /**
     * Sets values (variables) for templates.
     *
     * @param array $context Values for View instance.
     *
     * @return $this For chain calls.
     */
    public function setContext(array $context);
    /**
     * Returns Twig.
     *
     * If you use Twig for rendering this method would helpful.
     *
     * @return Environment Twig.
     */
    public function getTwigEnvironment();
    /**
     * Sets Twig.
     *
     * If you use Twig for rendering this method would helpful.
     *
     * @param Environment $twigEnvironment Twig.
     *
     * @return $this For chain calls.
     */
    public function setTwigEnvironment(Environment $twigEnvironment);
}