for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Setono\TagBag\Tag;
class PhpTemplatesTag extends Tag implements PhpTemplatesTagInterface
{
/** @var string */
protected $template;
/** @var array */
protected $context;
public function __construct(string $template, array $context = [])
$this->template = $template;
$this->context = $context;
$this->setName('setono_tag_bag_php_templates_tag');
}
public function getTemplate(): string
return $this->template;
public function getContext(): array
return $this->context;
public function setContext(array $context): self
return $this;
/**
* @param mixed $value
*/
public function addContext(string $key, $value): self
$this->context[$key] = $value;