public function __construct(UuidInterface $id = null) { $this->setId($id); $this->setCreated(); $this->setType(OptionType::select()); $this->tags = new ArrayCollection(); $this->optionProducts = new ArrayCollection(); $this->optionValues = new ArrayCollection(); $this->sortOrder = 0; }
public function getOptionType() { return OptionType::select(); }
public function testGetters() { $this->assertSame('Select', OptionType::select()->getName()); $this->assertSame('Radio', OptionType::radio()->getName()); $this->assertSame('Checkbox', OptionType::checkbox()->getName()); }