gplx/mediawiki/extensions/SemanticMediaWiki/tests/phpunit/Utils/Fixtures/Properties/YearProperty.php

24 lines
353 B
PHP

<?php
namespace SMW\Tests\Utils\Fixtures\Properties;
use SMW\DIProperty;
/**
* @license GPL-2.0-or-later
* @since 2.1
*
* @author mwjames
*/
class YearProperty extends FixtureProperty {
/**
* @since 2.1
*/
public function __construct() {
$this->property = new DIProperty( 'Year' );
$this->property->setPropertyTypeId( '_dat' );
}
}