subresources[$name] = new $type( $this->client, $this->uri . "/$constantized" ); } } }