diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/src/Query/ProfileAnnotators/NullProfileAnnotator.php')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/src/Query/ProfileAnnotators/NullProfileAnnotator.php | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/src/Query/ProfileAnnotators/NullProfileAnnotator.php b/www/wiki/extensions/SemanticMediaWiki/src/Query/ProfileAnnotators/NullProfileAnnotator.php new file mode 100644 index 00000000..bd5b686a --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/src/Query/ProfileAnnotators/NullProfileAnnotator.php @@ -0,0 +1,81 @@ +<?php + +namespace SMW\Query\ProfileAnnotators; + +use SMW\DIProperty; +use SMW\Query\ProfileAnnotator; +use SMWDIContainer as DIContainer; + +/** + * @license GNU GPL v2+ + * @since 1.9 + * + * @author mwjames + */ +class NullProfileAnnotator implements ProfileAnnotator { + + /** + * @var DIContainer + */ + private $container; + + /** + * @since 1.9 + * + * @param DIContainer $container + */ + public function __construct( DIContainer $container ) { + $this->container = $container; + } + + /** + * @since 1.9 + * + * @return array + */ + public function getErrors() { + return $this->getSemanticData()->getErrors(); + } + + /** + * ProfileAnnotator::getProperty + * + * @since 1.9 + * + * @return array + */ + public function getProperty() { + return new DIProperty( '_ASK' ); + } + + /** + * ProfileAnnotator::getContainer + * + * @since 1.9 + * + * @return DIContainer + */ + public function getContainer() { + return $this->container; + } + + /** + * ProfileAnnotator::getSemanticData + * + * @since 1.9 + * + * @return SemanticData + */ + public function getSemanticData() { + return $this->container->getSemanticData(); + } + + /** + * ProfileAnnotator::addAnnotation + * + * @since 1.9 + */ + public function addAnnotation() { + } + +} |