Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function getReportService($privateKey, $email, $subject, $cache = null): Report |
||
16 | { |
||
17 | $serviceAccount = new ServiceAccount($privateKey, $email, $subject); |
||
18 | |||
19 | $jwtFactory = new JwtServiceAccountFactory($serviceAccount); |
||
20 | |||
21 | $authStrategy = new Oauth2ServiceAccountStrategy(new Client(), $cache, $jwtFactory); |
||
22 | |||
23 | $auth = new Auth(new Client(), $authStrategy); |
||
24 | |||
25 | $report = new Report($auth, new TwigCompiler(), $cache); |
||
26 | |||
27 | return $report; |
||
28 | } |
||
29 | } |
||
30 |