Пример #1
0
 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;
 }
Пример #2
0
 public function getOptionType()
 {
     return OptionType::select();
 }
Пример #3
0
 public function testGetters()
 {
     $this->assertSame('Select', OptionType::select()->getName());
     $this->assertSame('Radio', OptionType::radio()->getName());
     $this->assertSame('Checkbox', OptionType::checkbox()->getName());
 }