for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Wikibase\DataFixtures\Properties;
use Wikibase\DataModel\Entity\Property;
use Wikibase\DataModel\Entity\PropertyId;
use Wikibase\DataModel\Term\Fingerprint;
/**
* @licence GNU GPL v2+
* @author Jeroen De Dauw < [email protected] >
*/
class CountryProperty {
public function newFingerprint() {
$fingerprint = new Fingerprint();
$fingerprint->setLabel( 'en', 'country' );
$fingerprint->setLabel( 'de', 'Staat' );
$fingerprint->setLabel( 'nl', 'Land' );
$fingerprint->setDescription( 'en', 'sovereign state of this item' );
$fingerprint->setDescription( 'de', 'souveräner Staat, in dem sich das Objekt befindet' );
return $fingerprint;
}
public function newProperty() {
return new Property(
$this->newPropertyId(),
$this->newFingerprint(),
'wikibase-item'
);
public function newPropertyId() {
return new PropertyId( 'P17' );