/** * Delete a stopword from the api. * @param Stopword $stopword * @return mixed */ public function delete(Stopword $stopword) { return $this->deleteByWord($stopword->getWord(), $stopword->getTagName()); }
/** * @param string $tagName * @param Stopword $stopword * @throws \Searchperience\Common\Http\Exception\InternalServerErrorException * @throws \Searchperience\Common\Http\Exception\ForbiddenException * @throws \Searchperience\Common\Http\Exception\ClientErrorResponseException * @throws \Searchperience\Common\Http\Exception\UnauthorizedException * @throws \Searchperience\Common\Http\Exception\MethodNotAllowedException * @throws \Searchperience\Common\Http\Exception\RequestEntityTooLargeException * @return mixed */ public function delete($tagName, Stopword $stopword) { return $this->deleteByWord($tagName, $stopword->getWord()); }
/** * @test */ public function canSetMainWord() { $this->stopword->setWord("foo"); $this->assertSame("foo", $this->stopword->getWord()); }