| Total Complexity | 3 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | final class Paraphraser implements ParaphraserContract |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Mapping of resources and url. |
||
| 16 | * |
||
| 17 | * @const array |
||
| 18 | */ |
||
| 19 | private const API_URL = 'http://script4.prothemes.biz/php/process.php'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * HTTP Client instance. |
||
| 23 | */ |
||
| 24 | protected GuzzleClient $client; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Guzzle settings. |
||
| 28 | * |
||
| 29 | * @var array |
||
| 30 | */ |
||
| 31 | private array $guzzleSettings = [ |
||
| 32 | 'timeout' => -1, |
||
| 33 | 'defaults' => [ |
||
| 34 | 'verify' => false, |
||
| 35 | ], |
||
| 36 | ]; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Create a new seeker. |
||
| 40 | */ |
||
| 41 | public function __construct() |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | */ |
||
| 49 | public function paraphrase(string $text): string |
||
| 71 |