Issues (73)

src/request/DiffRequest.php (1 issue)

1
<?php
2
3
/**
4
 * This class is generated using the package carono/codegen
5
 */
6
7
namespace carono\etxtru\request;
8
9
class DiffRequest extends \carono\etxtru\RequestAbstract
10
{
11
	/**
12
	 * Функция показывает степень схожести двух текстов
13
	 *
14
	 * @param string $source Исходный текст (длина от 30 до 20000 знаков)
15
	 * @param string $text Текст для сравнения (длина от 30 до 20000 знаков)
16
	 * @return \carono\etxtru\response\CompareTextResponse|\stdClass
17
	 */
18
	public function compareText($source, $text)
19
	{
20
		$params = [
21
			'source' => $source,
22
			'text' => $text
23
		];
24
		return $this->getClient()->getContent('diff.compareText', $params, 'carono\etxtru\response\CompareTextResponse');
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getClient(...e\CompareTextResponse') also could return the type carono\etxtru\Response which is incompatible with the documented return type carono\etxtru\response\C...reTextResponse|stdClass.
Loading history...
25
	}
26
}
27