Skip to content

Commit 61f80d9

Browse files
committed
feat(client): register synonym set classes in client
1 parent 089d8a2 commit 61f80d9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Client.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ class Client
9090
*/
9191
public NLSearchModels $nlSearchModels;
9292

93+
/**
94+
* @var SynonymSets
95+
*/
96+
public SynonymSets $synonymSets;
97+
9398
/**
9499
* @var ApiCall
95100
*/
@@ -121,6 +126,7 @@ public function __construct(array $config)
121126
$this->stemming = new Stemming($this->apiCall);
122127
$this->conversations = new Conversations($this->apiCall);
123128
$this->nlSearchModels = new NLSearchModels($this->apiCall);
129+
$this->synonymSets = new SynonymSets($this->apiCall);
124130
}
125131

126132
/**
@@ -234,4 +240,12 @@ public function getNLSearchModels(): NLSearchModels
234240
{
235241
return $this->nlSearchModels;
236242
}
243+
244+
/**
245+
* @return SynonymSets
246+
*/
247+
public function getSynonymSets(): SynonymSets
248+
{
249+
return $this->synonymSets;
250+
}
237251
}

0 commit comments

Comments
 (0)