forked from lesstif/php-JiraCloud-RESTAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathADFMarkType.php
More file actions
33 lines (30 loc) · 790 Bytes
/
Copy pathADFMarkType.php
File metadata and controls
33 lines (30 loc) · 790 Bytes
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
<?php
namespace JiraCloud\ADF;
/**
* @see https://developer.atlassian.com/cloud/jira/platform/apis/document/marks/strong/
*/
enum ADFMarkType
{
case code;
case strong;
case em;
case link;
case strike;
case subsup;
case textColor;
case underline;
// return enum name as string
public function name(): string
{
return match ($this) {
ADFMarkType::code => 'code',
ADFMarkType::strong => 'strong',
ADFMarkType::em => 'em',
ADFMarkType::link => 'link',
ADFMarkType::strike => 'strike',
ADFMarkType::subsup => 'subsup',
ADFMarkType::textColor => 'textColor',
ADFMarkType::underline => 'underline',
};
}
}