Skip to content

Commit c948aff

Browse files
committed
chore: Add attributes to public interfaces
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent 709e4c7 commit c948aff

28 files changed

Lines changed: 124 additions & 146 deletions

lib/public/Group/Backend/IAddToGroupBackend.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99

1010
namespace OCP\Group\Backend;
1111

12+
use OCP\AppFramework\Attribute\Implementable;
13+
1214
/**
1315
* @since 14.0.0
1416
*/
17+
#[Implementable(since: '14.0.0')]
1518
interface IAddToGroupBackend {
1619
/**
1720
* @since 14.0.0

lib/public/Group/Backend/IBatchMethodsBackend.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@
99

1010
namespace OCP\Group\Backend;
1111

12+
use OCP\AppFramework\Attribute\Implementable;
13+
1214
/**
1315
* @brief Optional interface for group backends
1416
* @since 28.0.0
1517
*/
18+
#[Implementable(since: '28.0.0')]
1619
interface IBatchMethodsBackend {
1720
/**
1821
* @brief Batch method to check if a list of groups exists

lib/public/Group/Backend/ICountDisabledInGroup.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99

1010
namespace OCP\Group\Backend;
1111

12+
use OCP\AppFramework\Attribute\Implementable;
13+
1214
/**
1315
* @since 14.0.0
1416
*/
17+
#[Implementable(since: '14.0.0')]
1518
interface ICountDisabledInGroup {
1619
/**
1720
* @since 14.0.0

lib/public/Group/Backend/ICountUsersBackend.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99

1010
namespace OCP\Group\Backend;
1111

12+
use OCP\AppFramework\Attribute\Implementable;
13+
1214
/**
1315
* @since 14.0.0
1416
*/
17+
#[Implementable(since: '14.0.0')]
1518
interface ICountUsersBackend {
1619
/**
1720
* @since 14.0.0

lib/public/Group/Backend/ICreateGroupBackend.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@
99

1010
namespace OCP\Group\Backend;
1111

12+
use OCP\AppFramework\Attribute\Implementable;
13+
1214
/**
1315
* @since 14.0.0
1416
* @deprecated 30.0.0 Use ICreateNamedGroupBackend instead
1517
*/
18+
#[Implementable(since: '14.0.0')]
1619
interface ICreateGroupBackend {
1720
/**
1821
* @since 14.0.0

lib/public/Group/Backend/ICreateNamedGroupBackend.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99

1010
namespace OCP\Group\Backend;
1111

12+
use OCP\AppFramework\Attribute\Implementable;
13+
1214
/**
1315
* @since 30.0.0
1416
*/
17+
#[Implementable(since: '30.0.0')]
1518
interface ICreateNamedGroupBackend {
1619
/**
1720
* Tries to create a group from its name.

lib/public/Group/Backend/IDeleteGroupBackend.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99

1010
namespace OCP\Group\Backend;
1111

12+
use OCP\AppFramework\Attribute\Implementable;
13+
1214
/**
1315
* @since 14.0.0
1416
*/
17+
#[Implementable(since: '14.0.0')]
1518
interface IDeleteGroupBackend {
1619
/**
1720
* @since 14.0.0

lib/public/Group/Backend/IGetDisplayNameBackend.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99

1010
namespace OCP\Group\Backend;
1111

12+
use OCP\AppFramework\Attribute\Implementable;
13+
1214
/**
1315
* @since 17.0.0
1416
*/
17+
#[Implementable(since: '17.0.0')]
1518
interface IGetDisplayNameBackend {
1619
/**
1720
* @param string $gid

lib/public/Group/Backend/IGroupDetailsBackend.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@
99

1010
namespace OCP\Group\Backend;
1111

12+
use OCP\AppFramework\Attribute\Implementable;
13+
1214
/**
1315
* @brief Optional interface for group backends
1416
* @since 14.0.0
1517
*/
18+
#[Implementable(since: '14.0.0')]
1619
interface IGroupDetailsBackend {
1720
/**
1821
* @brief Get additional details for a group, for example the display name.

lib/public/Group/Backend/IHideFromCollaborationBackend.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99

1010
namespace OCP\Group\Backend;
1111

12+
use OCP\AppFramework\Attribute\Implementable;
13+
1214
/**
1315
* @since 16.0.0
1416
*
1517
* Allow the backend to mark groups to be excluded from being shown in search dialogs
1618
*/
19+
#[Implementable(since: '16.0.0')]
1720
interface IHideFromCollaborationBackend {
1821
/**
1922
* Check if a group should be hidden from search dialogs

0 commit comments

Comments
 (0)