nextcloud/lib/private/Remote/Api/ApiCollection.php
Ferdinand Thiessen e0ba4d71b6
chore: add missing Override attribute to OC
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-04-28 21:29:27 +02:00

33 lines
773 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OC\Remote\Api;
use OCP\Http\Client\IClientService;
use OCP\Remote\Api\IApiCollection;
use OCP\Remote\ICredentials;
use OCP\Remote\IInstance;
class ApiCollection implements IApiCollection {
public function __construct(
private IInstance $instance,
private ICredentials $credentials,
private IClientService $clientService,
) {
}
#[\Override]
public function getCapabilitiesApi() {
return new OCS($this->instance, $this->credentials, $this->clientService);
}
#[\Override]
public function getUserApi() {
return new OCS($this->instance, $this->credentials, $this->clientService);
}
}