public function getAll(): array
    {
        $response = $this->client->request('GET', $this->resourceUri);

        $json = json_decode((string)$response->getBody());

        $dirItemCollection = [];

        foreach ($json as $starredFile) {
            $dirItemCollection[] = (new DirectoryItem)->fromJson($starredFile);
        }

        return $dirItemCollection;
    }
public function getAll(): array
    {
        $response = $this->client->request('GET', $this->resourceUri);

        $json = json_decode((string)$response->getBody());

        $dirItemCollection = [];

        foreach ($json as $starredFile) {
            $dirItemCollection[] = (new DirectoryItem)->fromJson($starredFile);
        }

        return $dirItemCollection;
    }
public function getAll ( ) : array { $ response = $ this -> client -> request ( 'GET' , $ this -> resourceUri ) ; $ json = json_decode ( ( string ) $ response -> getBody ( ) ) ; $ dirItemCollection = [ ] ; foreach ( $ json as $ starredFile ) { $ dirItemCollection [ ] = ( new DirectoryItem ) -> fromJson ( $ starredFile ) ; } return $ dirItemCollection ; }
Get all starred files

@return DirectoryItem[]
@throws \Exception
@throws \GuzzleHttp\Exception\GuzzleException
Get all starred files