Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class SafeSearch extends AbstractDetector implements Detectable |
||
14 | { |
||
15 | public function getOriginalResponse(): ?SafeSearchAnnotation |
||
16 | { |
||
17 | $response = $this |
||
18 | ->imageAnnotatorClient |
||
19 | ->safeSearchDetection($this->file->toVisionFile()); |
||
20 | |||
21 | return $response->getSafeSearchAnnotation(); |
||
22 | } |
||
23 | |||
24 | public function detect(): ?SafeSearchData |
||
38 | )); |
||
39 | } |
||
41 |