Skip to content

Commit 8cd5aa1

Browse files
committed
Introduce provider interfaces for labels, descriptions and aliases
1 parent 9074855 commit 8cd5aa1

3 files changed

Lines changed: 54 additions & 0 deletions

File tree

src/Term/AliasesProvider.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+
* @since 4.0
7+
*
8+
* @licence GNU GPL v2+
9+
* @author Bene* < benestar.wikimedia@gmail.com >
10+
*/
11+
interface AliasesProvider {
12+
13+
/**
14+
* @return AliasGroupList
15+
*/
16+
public function getAliases();
17+
18+
}

src/Term/DescriptionsProvider.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+
* @since 4.0
7+
*
8+
* @licence GNU GPL v2+
9+
* @author Bene* < benestar.wikimedia@gmail.com >
10+
*/
11+
interface DescriptionsProvider {
12+
13+
/**
14+
* @return TermList
15+
*/
16+
public function getDescriptions();
17+
18+
}

src/Term/LabelsProvider.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+
* @since 4.0
7+
*
8+
* @licence GNU GPL v2+
9+
* @author Bene* < benestar.wikimedia@gmail.com >
10+
*/
11+
interface LabelsProvider {
12+
13+
/**
14+
* @return TermList
15+
*/
16+
public function getLabels();
17+
18+
}

0 commit comments

Comments
 (0)