-
Notifications
You must be signed in to change notification settings - Fork 195
Expand file tree
/
Copy pathGroup.php
More file actions
49 lines (40 loc) · 1.28 KB
/
Group.php
File metadata and controls
49 lines (40 loc) · 1.28 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
namespace Dedoc\Scramble\Attributes;
use Attribute;
/**
* Groups endpoints.
*/
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]
class Group
{
public function __construct(
public readonly ?string $name = null,
public readonly ?string $description = null,
/**
* Determines the ordering of the groups. Groups with the same weight, are sorted
* by the name (with `SORT_LOCALE_STRING` sorting flag).
*/
public readonly int $weight = PHP_INT_MAX,
/**
* The parent tag name. Used to organize tags into hierarchical groups
* via the native OpenAPI 3.2.0 Tag Object `parent` field.
*/
public readonly ?string $parent = null,
/**
* A short summary of the tag.
*/
public readonly ?string $summary = null,
/**
* The kind of tag: "navigation" (default) or "api".
*/
public readonly ?string $kind = null,
/**
* URL for additional external documentation for this tag.
*/
public readonly ?string $externalDocsUrl = null,
/**
* Description of the external documentation for this tag.
*/
public readonly ?string $externalDocsDescription = null,
) {}
}