/**
  * @param string $name
  * @param string $description
  * @param int $sortOrder
  * @param int $textOptionTypeId
  */
 public function __construct($name, $description, $sortOrder, $textOptionTypeId)
 {
     $this->textOptionId = Uuid::uuid4();
     $this->name = (string) $name;
     $this->description = (string) $description;
     $this->sortOrder = (int) $sortOrder;
     $this->textOptionType = TextOptionType::createById($textOptionTypeId);
 }
 public function testCreateByIdThrowsExceptionWhenInvalid()
 {
     $this->setExpectedException(InvalidArgumentException::class);
     TextOptionType::createById(999);
 }