wikimedia/mediawiki-extensions-Wikibase

View on GitHub
lib/packages/wikibase/data-model/src/Term/DescriptionsProvider.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Wikibase\DataModel\Term;

/**
 * Common interface for classes (typically Entities) that contain a TermList, representing
 * descriptions. Implementations must guarantee this returns the original, mutable object.
 *
 * @since 4.1
 *
 * @license GPL-2.0-or-later
 * @author Bene* < benestar.wikimedia@gmail.com >
 */
interface DescriptionsProvider {

    /**
     * This is guaranteed to return the original, mutable object.
     *
     * @return TermList
     */
    public function getDescriptions();

}