wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/src/Domain/ReadModel/PropertyValuePair.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare( strict_types=1 );

namespace Wikibase\Repo\RestApi\Domain\ReadModel;

/**
 * @license GPL-2.0-or-later
 */
class PropertyValuePair {

    private PredicateProperty $property;
    private Value $value;

    public function __construct( PredicateProperty $property, Value $value ) {
        $this->property = $property;
        $this->value = $value;
    }

    public function getProperty(): PredicateProperty {
        return $this->property;
    }

    public function getValue(): Value {
        return $this->value;
    }

}