Skip to content

Commit 19dba8b

Browse files
feat(sharereview): add ShareReviewSource with constructor and getName()
Assisted-by: Claude Code:claude-sonnet-4-6 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 parent 237d72b commit 19dba8b

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
10+
namespace OCA\Deck\ShareReview;
11+
12+
use OCA\ShareReview\Sources\ISource;
13+
use OCP\IDBConnection;
14+
use Psr\Log\LoggerInterface;
15+
16+
class ShareReviewSource implements ISource {
17+
18+
private const ACL_TABLE = 'deck_board_acl';
19+
private const BOARDS_TABLE = 'deck_boards';
20+
private const PERMISSION_MANAGE = 32;
21+
22+
public function __construct(
23+
private IDBConnection $db,
24+
private LoggerInterface $logger,
25+
) {
26+
}
27+
28+
public function getName(): string {
29+
return 'Deck';
30+
}
31+
32+
public function getShares(): array {
33+
return [];
34+
}
35+
36+
public function deleteShare(string $shareId): bool {
37+
return false;
38+
}
39+
}

0 commit comments

Comments
 (0)