id = $id; $this->word = $word; } /** * @return string */ public function getWord(): string { return $this->word; } /** * @param string $word */ public function setWord(string $word): void { $this->word = $word; } /** * @return int */ public function getId(): int { return $this->id; } }