Skip to content

Commit

Permalink
Merge pull request #821 from wmde/term-types
Browse files Browse the repository at this point in the history
Add TermTypes interface with term type constants
  • Loading branch information
Ladsgroup authored Jan 30, 2020
2 parents a55334a + 795fbc7 commit fc7e0cf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Version 9.3.0 (development)

* Raised minimum PHP version to 7.1
* Added `TermTypes` with term type constants

## Version 9.2.0 (2020-01-24)

Expand Down
18 changes: 18 additions & 0 deletions src/Term/TermTypes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace Wikibase\DataModel\Term;

/**
* Term types used on Items and Properties
*
* @since 9.3
*
* @license GPL-2.0-or-later
*/
final class TermTypes {

public const TYPE_LABEL = 'label';
public const TYPE_DESCRIPTION = 'description';
public const TYPE_ALIAS = 'alias';

}

0 comments on commit fc7e0cf

Please sign in to comment.