1 | <?php |
||
7 | class GoogleCloudTranslator implements TranslatorInterface |
||
8 | { |
||
9 | protected $translator; |
||
10 | protected $source; |
||
11 | protected $target; |
||
12 | |||
13 | public function __construct() |
||
19 | |||
20 | public function setSource(string $source) |
||
26 | |||
27 | public function setTarget(string $target) |
||
33 | |||
34 | public function translate(string $string) : string |
||
43 | } |
||
44 |