original_string: public function getAll(): array
      {
          $response = $this->client->request('GET', $this->client->getConfig('base_uri') . '/shared-links/');
  
          $json = json_decode($response->getBody());
  
          $sharedLinksCollection = [];
  
          foreach ($json->fileshares as $sharedLink) {
              $sharedLinksCollection[] = (new SharedLinkType)->fromJson($sharedLink);
          }
  
          return $sharedLinksCollection;
      }
code: public function getAll(): array
      {
          $response = $this->client->request('GET', $this->client->getConfig('base_uri') . '/shared-links/');
  
          $json = json_decode($response->getBody());
  
          $sharedLinksCollection = [];
  
          foreach ($json->fileshares as $sharedLink) {
              $sharedLinksCollection[] = (new SharedLinkType)->fromJson($sharedLink);
          }
  
          return $sharedLinksCollection;
      }
code_tokens: public function getAll ( ) : array { $ response = $ this -> client -> request ( 'GET' , $ this -> client -> getConfig ( 'base_uri' ) . '/shared-links/' ) ; $ json = json_decode ( $ response -> getBody ( ) ) ; $ sharedLinksCollection = [ ] ; foreach ( $ json -> fileshares as $ sharedLink ) { $ sharedLinksCollection [ ] = ( new SharedLinkType ) -> fromJson ( $ sharedLink ) ; } return $ sharedLinksCollection ; }
docstring: List shared links
  
  @return SharedLinkType[]
  @throws Exception
  @throws \GuzzleHttp\Exception\GuzzleException
docstring_tokens: List shared links