diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Utils/Fixtures/Properties/TelephoneNumberProperty.php')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Utils/Fixtures/Properties/TelephoneNumberProperty.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Utils/Fixtures/Properties/TelephoneNumberProperty.php b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Utils/Fixtures/Properties/TelephoneNumberProperty.php new file mode 100644 index 00000000..20fbf125 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Utils/Fixtures/Properties/TelephoneNumberProperty.php @@ -0,0 +1,23 @@ +<?php + +namespace SMW\Tests\Utils\Fixtures\Properties; + +use SMW\DIProperty; + +/** + * @license GNU GPL v2+ + * @since 2.1 + * + * @author mwjames + */ +class TelephoneNumberProperty extends FixtureProperty { + + /** + * @since 2.1 + */ + public function __construct() { + $this->property = DIProperty::newFromUserLabel( 'Telephone number' ); + $this->property->setPropertyTypeId( '_tel' ); + } + +} |