public function listModules()
    {
        $uri = 'asterisk/modules';

        $response = $this->client->getEndpoint()->get($uri);

        $modules = [];
        foreach (\GuzzleHttp\json_decode($response->getBody()) as $module) {
            $modules[] = new Module($module);
        }

        return $modules;
    }
public function listModules()
    {
        $uri = 'asterisk/modules';

        $response = $this->client->getEndpoint()->get($uri);

        $modules = [];
        foreach (\GuzzleHttp\json_decode($response->getBody()) as $module) {
            $modules[] = new Module($module);
        }

        return $modules;
    }
public function listModules ( ) { $ uri = 'asterisk/modules' ; $ response = $ this -> client -> getEndpoint ( ) -> get ( $ uri ) ; $ modules = [ ] ; foreach ( \ GuzzleHttp \ json_decode ( $ response -> getBody ( ) ) as $ module ) { $ modules [ ] = new Module ( $ module ) ; } return $ modules ; }
List Asterisk modules.

@return Module[]
List Asterisk modules .