Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Domain\ReadModel\Value Class Reference
+ Collaboration diagram for Wikibase\Repo\RestApi\Domain\ReadModel\Value:

Public Member Functions

 __construct (string $valueType, ?DataValue $content=null)
 
 getType ()
 
 getContent ()
 

Public Attributes

const TYPE_VALUE = 'value'
 
const TYPE_NO_VALUE = 'novalue'
 
const TYPE_SOME_VALUE = 'somevalue'
 

Private Attributes

string $valueType
 
DataValue $content
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Domain\ReadModel\Value::__construct ( string $valueType,
?DataValue $content = null )

Member Function Documentation

◆ getContent()

Wikibase\Repo\RestApi\Domain\ReadModel\Value::getContent ( )
Returns
DataValue|null Guaranteed to be non-null if value type is "value", always null otherwise.

◆ getType()

Wikibase\Repo\RestApi\Domain\ReadModel\Value::getType ( )

Member Data Documentation

◆ $content

DataValue Wikibase\Repo\RestApi\Domain\ReadModel\Value::$content
private

◆ $valueType

string Wikibase\Repo\RestApi\Domain\ReadModel\Value::$valueType
private

◆ TYPE_NO_VALUE

const Wikibase\Repo\RestApi\Domain\ReadModel\Value::TYPE_NO_VALUE = 'novalue'

◆ TYPE_SOME_VALUE

const Wikibase\Repo\RestApi\Domain\ReadModel\Value::TYPE_SOME_VALUE = 'somevalue'

◆ TYPE_VALUE

const Wikibase\Repo\RestApi\Domain\ReadModel\Value::TYPE_VALUE = 'value'

The documentation for this class was generated from the following file: