public function __construct($batchSize = null, $taskName = null, $classes = null)
 {
     $this->batchSize = $batchSize;
     $this->taskName = $taskName;
     $this->classes = $classes;
     parent::__construct();
 }
 public function __construct($indexName = null, $state = null, $class = null, $groups = null, $group = null)
 {
     parent::__construct();
     $this->indexName = $indexName;
     $this->state = $state;
     $this->class = $class;
     $this->groups = $groups;
     $this->group = $group;
 }