for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Lakion\SyliusCmsBundle\Document;
use Sylius\Component\Core\Model\TaxonInterface;
class TaxonBlock extends CustomBlock
{
/**
* @var TaxonInterface
*/
private $taxon;
* @var string
private $taxonCode;
* {@inheritdoc}
public function getType()
return 'lakion_sylius_cms.block.taxon';
}
* @return TaxonInterface
public function getTaxon()
return $this->taxon;
* @param TaxonInterface $taxon
public function setTaxon(TaxonInterface $taxon)
$this->taxon = $taxon;
$this->taxonCode = $taxon->getCode();
* @return string
public function getTaxonCode()
return $this->taxonCode;
* @param string $taxonCode
public function setTaxonCode($taxonCode)
$this->taxonCode = $taxonCode;