for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace HelloWordPl\SimpleEntityGeneratorBundle\Lib\Traits;
use JMS\Serializer\Annotation\Type;
/**
* @author Sławomir Kania <[email protected]>
*/
trait TemplateTrait
{
* @var string
private $template;
* @Type("string")
private $templatePath;
* @param string $template
* @return this
public function setTemplate($template)
$this->template = $template;
return $this;
}
* Return common element template
*
* @return string
public function getTemplate()
return $this->template;
public function getTemplatePath()
return $this->templatePath;
* @param string $templatePath
public function setTemplatePath($templatePath)
$this->templatePath = $templatePath;