for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Flagbit\Bundle\TableAttributeBundle\Entity;
use Akeneo\Pim\Structure\Component\Model\AttributeOption as BaseAttributeOption;
use Flagbit\Bundle\TableAttributeBundle\AttributeType\TableType;
/**
* @todo move Table specific columns into an own entity
*/
class AttributeOption extends BaseAttributeOption implements ConstraintConfigInterface
{
* @var string
private $type;
* @var array
private $constraints;
private $typeConfig;
* @return string
public function getType()
return $this->type;
}
* @param string $type
public function setType($type)
$this->type = $type;
* @return array
public function getConstraints()
return $this->constraints;
* @param array $constraints
public function setConstraints($constraints)
$this->constraints = $constraints;
public function getTypeConfig()
return $this->typeConfig;
* @param array $typeConfig
public function setTypeConfig($typeConfig)
$this->typeConfig = $typeConfig;
public function isTableAttribute() : bool
return null !== $this->attribute && TableType::FLAGBIT_CATALOG_TABLE === $this->attribute->getType();