Debian Codegraph @

includes/libs/Message/ListType.php

raw symbols SCIP
1 <?php
2
3 namespace Wikimedia\Message;
4
5 /**
6 * The constants used to specify list types. The values of the constants are an
7 * unstable implementation detail.
8 */
9 class ListType {
10 /** A comma-separated list */
11 public const COMMA = 'comma';
12
13 /** A semicolon-separated list */
14 public const SEMICOLON = 'semicolon';
15
16 /** A pipe-separated list */
17 public const PIPE = 'pipe';
18
19 /** A natural-language list separated by "and" */
20 public const AND = 'text';
21
22 public static function cases(): array {
23 return [
24 self::COMMA,
25 self::SEMICOLON,
26 self::PIPE,
27 self::AND,
28 ];
29 }
30 }