for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AlexMasterov\EquipTwig\Payload;
use Equip\Adr\PayloadInterface;
trait PayloadInterfaceRenderTrait
{
/**
* @var PayloadInterface
*/
protected $payload;
protected function render(string $template, array $output = []): PayloadInterface
return $this->payload
->withStatus(PayloadInterface::STATUS_OK)
->withSetting('template', $template)
->withOutput($output);
}