Skip to content

Commit fc7e0cf

Browse files
authored
Merge pull request #821 from wmde/term-types
Add TermTypes interface with term type constants
2 parents a55334a + 795fbc7 commit fc7e0cf

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

RELEASE-NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Version 9.3.0 (development)
44

55
* Raised minimum PHP version to 7.1
6+
* Added `TermTypes` with term type constants
67

78
## Version 9.2.0 (2020-01-24)
89

src/Term/TermTypes.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
namespace Wikibase\DataModel\Term;
4+
5+
/**
6+
* Term types used on Items and Properties
7+
*
8+
* @since 9.3
9+
*
10+
* @license GPL-2.0-or-later
11+
*/
12+
final class TermTypes {
13+
14+
public const TYPE_LABEL = 'label';
15+
public const TYPE_DESCRIPTION = 'description';
16+
public const TYPE_ALIAS = 'alias';
17+
18+
}

0 commit comments

Comments
 (0)