1 | <?php |
||
23 | class Detect implements \badams\MicrosoftTranslator\ApiMethodInterface |
||
24 | { |
||
25 | /** |
||
26 | * @const Maximum allowable length of text |
||
27 | */ |
||
28 | const TEXT_MAX_LENGTH = 10000; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $text; |
||
34 | |||
35 | /** |
||
36 | * Detect constructor. |
||
37 | * @param $text |
||
38 | */ |
||
39 | 6 | public function __construct($text) |
|
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | 3 | public function getRequestMethod() |
|
57 | |||
58 | /** |
||
59 | * @return array |
||
60 | */ |
||
61 | 3 | public function getRequestOptions() |
|
65 | |||
66 | /** |
||
67 | * @param \GuzzleHttp\Message\ResponseInterface $response |
||
68 | * @return Language |
||
69 | */ |
||
70 | 3 | public function processResponse(\GuzzleHttp\Message\ResponseInterface $response) |
|
75 | } |
||
76 |