/** * @return void */ private function clearInteractionTypes() { $interactionTypes = $this->client->getInteractionTypes(); foreach ($interactionTypes['interactions'] as $interactionType) { $interactionTypeId = $interactionType['id']; if ($interactionTypeId !== self::INTERACTION_RECOMMENDATION) { $this->client->deleteInteractionType($interactionTypeId); } } }