/** * @return void */ private function seedTemplates() { $this->client->insertOrUpdateTemplate(self::TEMPLATE_ID_1, (new TemplateConfiguration())->setFilter(self::TEMPLATE_FILTER)->setBooster(self::TEMPLATE_BOOSTER)->setDiversity(self::TEMPLATE_DIVERSITY)); $this->client->insertOrUpdateTemplate(self::TEMPLATE_ID_2, (new TemplateConfiguration())->setUserWeight(self::TEMPLATE_USER_WEIGHT)->setItemWeight(self::TEMPLATE_ITEM_WEIGHT)->setDiversity(self::TEMPLATE_DIVERSITY)); }