<?php

namespace CelerSearch\DataTransfer;

class IndexSynonym
{
	/**
	 * The synonym word
	 * @var string
	 */
    public string $word;

	/**
	 * The corrections for the synonym
	 * @var array
	 */
    public array $corrections = [];

	/**
	 * Constructor
	 *
	 * @param $word
	 * @param array $corrections
	 */
    public function __construct($word, array $corrections) {
        $this->word = $word;
        $this->corrections = $corrections;
    }
}