Represents a single Wikibase property.
More...
◆ __construct()
- Since
- 1.0
- Parameters
-
PropertyId | null | $id | |
Fingerprint | null | $fingerprint | |
string | $dataTypeId | The data type of the property. Not to be confused with the data value type. |
StatementList | null | $statements | Since 1.1 |
◆ __clone()
Wikibase\DataModel\Entity\Property::__clone |
( |
| ) |
|
◆ clear()
Wikibase\DataModel\Entity\Property::clear |
( |
| ) |
|
◆ copy()
Wikibase\DataModel\Entity\Property::copy |
( |
| ) |
|
◆ equals()
Wikibase\DataModel\Entity\Property::equals |
( |
| $target | ) |
|
◆ getAliasGroups()
Wikibase\DataModel\Entity\Property::getAliasGroups |
( |
| ) |
|
◆ getDataTypeId()
Wikibase\DataModel\Entity\Property::getDataTypeId |
( |
| ) |
|
- Since
- 0.4
- Returns
- string Returns the data type of the property (property type). Not to be confused with the data value type.
◆ getDescriptions()
Wikibase\DataModel\Entity\Property::getDescriptions |
( |
| ) |
|
◆ getFingerprint()
Wikibase\DataModel\Entity\Property::getFingerprint |
( |
| ) |
|
◆ getId()
Wikibase\DataModel\Entity\Property::getId |
( |
| ) |
|
◆ getLabels()
Wikibase\DataModel\Entity\Property::getLabels |
( |
| ) |
|
◆ getStatements()
Wikibase\DataModel\Entity\Property::getStatements |
( |
| ) |
|
◆ getType()
Wikibase\DataModel\Entity\Property::getType |
( |
| ) |
|
◆ isEmpty()
Wikibase\DataModel\Entity\Property::isEmpty |
( |
| ) |
|
◆ newFromType()
static Wikibase\DataModel\Entity\Property::newFromType |
( |
| $dataTypeId | ) |
|
|
static |
- Since
- 0.3
- Parameters
-
string | $dataTypeId | The data type of the property. Not to be confused with the data value type. |
- Returns
- self
◆ setAliases()
Wikibase\DataModel\Entity\Property::setAliases |
( |
| $languageCode, |
|
|
array | $aliases ) |
- Parameters
-
string | $languageCode | |
string[] | $aliases | |
- Exceptions
-
◆ setDataTypeId()
Wikibase\DataModel\Entity\Property::setDataTypeId |
( |
| $dataTypeId | ) |
|
- Since
- 0.4
- Parameters
-
string | $dataTypeId | The data type of the property. Not to be confused with the data value type. |
- Exceptions
-
◆ setDescription()
Wikibase\DataModel\Entity\Property::setDescription |
( |
| $languageCode, |
|
|
| $value ) |
- Parameters
-
string | $languageCode | |
string | $value | |
- Exceptions
-
◆ setFingerprint()
Wikibase\DataModel\Entity\Property::setFingerprint |
( |
Fingerprint | $fingerprint | ) |
|
◆ setId()
Wikibase\DataModel\Entity\Property::setId |
( |
| $id | ) |
|
◆ setLabel()
Wikibase\DataModel\Entity\Property::setLabel |
( |
| $languageCode, |
|
|
| $value ) |
- Parameters
-
string | $languageCode | |
string | $value | |
- Exceptions
-
◆ setStatements()
Wikibase\DataModel\Entity\Property::setStatements |
( |
StatementList | $statements | ) |
|
◆ $dataTypeId
Wikibase\DataModel\Entity\Property::$dataTypeId |
|
private |
◆ $fingerprint
Wikibase\DataModel\Entity\Property::$fingerprint |
|
private |
◆ $id
Wikibase\DataModel\Entity\Property::$id |
|
private |
◆ $statements
Wikibase\DataModel\Entity\Property::$statements |
|
private |
◆ ENTITY_TYPE
const Wikibase\DataModel\Entity\Property::ENTITY_TYPE = 'property' |
The documentation for this class was generated from the following file: