blob: 1e0c45348cfc20d406308ec915e4ba3dadedc92c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\AppFramework\Attribute;
use Attribute;
/**
* Abstract base attribute to declare an API's stability.
*
* @since 32.0.0
*/
#[Consumable(since: '32.0.0')]
abstract class ASince {
/**
* @param string $since For shipped apps and server code such as core/ and lib/,
* this should be the server version. For other apps it
* should be the semantic app version.
*/
public function __construct(
protected string $since,
) {
}
public function getSince(): string {
return $this->since;
}
}
|