for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Lakion\CmsPlugin\Document;
use Sylius\Component\Resource\Model\ResourceInterface;
use Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ImagineBlock;
class CustomBlock extends ImagineBlock implements ResourceInterface
{
/**
* @var string
*/
protected $title;
protected $body;
* {@inheritdoc}
public function getType()
return 'lakion_cms.block.custom';
}
* @return string
public function getTitle()
return $this->title;
* @param string $title
public function setTitle($title)
$this->title = $title;
public function getBody()
return $this->body;
* @param string $body
public function setBody($body)
$this->body = $body;