| Total Complexity | 4 | 
| Total Lines | 37 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1);  | 
            ||
| 14 | final class SpotifyApiConnectFactory  | 
            ||
| 15 | { | 
            ||
| 16 | /**  | 
            ||
| 17 | * @param string $accessToken  | 
            ||
| 18 | * @return SpotifyWebApiInterface  | 
            ||
| 19 | */  | 
            ||
| 20 | public function createSpotifyWebApi(string $accessToken) : SpotifyWebApiInterface  | 
            ||
| 23 | }  | 
            ||
| 24 | |||
| 25 | /**  | 
            ||
| 26 | * @return SpotifyApiAuthInterface  | 
            ||
| 27 | */  | 
            ||
| 28 | public function createSpotifyApiAuth(): SpotifyApiAuthInterface  | 
            ||
| 29 |     { | 
            ||
| 30 | return new SpotifyApiAuth(  | 
            ||
| 31 | $this->createSpotifyWebApiPhpSession()  | 
            ||
| 32 | );  | 
            ||
| 33 | }  | 
            ||
| 34 | |||
| 35 | /**  | 
            ||
| 36 | * @return SessionInterface  | 
            ||
| 37 | */  | 
            ||
| 38 | private function createSpotifyWebApiPhpSession(): SessionInterface  | 
            ||
| 39 |     { | 
            ||
| 40 | return new Session(  | 
            ||
| 41 | $this->createConfig()  | 
            ||
| 42 | );  | 
            ||
| 43 | }  | 
            ||
| 44 | |||
| 45 | /**  | 
            ||
| 46 | * @return ConfigInterface  | 
            ||
| 47 | */  | 
            ||
| 48 | private function createConfig(): ConfigInterface  | 
            ||
| 51 | }  | 
            ||
| 52 | |||
| 53 | }  |