DiffRequest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A compareText() 0 7 1
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