for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Leogout\Bundle\SeoBundle\Model;
/**
* Description of TitleTag.
*
* @author: leogout
*/
class TitleTag implements RenderableInterface
{
* @var string
protected $content;
* @return string
public function getContent()
return $this->content;
}
* @param string $content
* @return $this
public function setContent($content)
$this->content = (string) $content;
return $this;
public function render()
return sprintf('<title>%s</title>', $this->getContent());
public function __toString()
return $this->render();