summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CommentStreams/.phan/stubs/PropertyRegistry.php')
-rw-r--r--CommentStreams/.phan/stubs/PropertyRegistry.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/CommentStreams/.phan/stubs/PropertyRegistry.php b/CommentStreams/.phan/stubs/PropertyRegistry.php
new file mode 100644
index 00000000..506817e9
--- /dev/null
+++ b/CommentStreams/.phan/stubs/PropertyRegistry.php
@@ -0,0 +1,30 @@
+<?php
+
+namespace SMW;
+
+class PropertyRegistry {
+ /**
+ * @return PropertyRegistry
+ */
+ public static function getInstance(): self {
+ return new self();
+ }
+
+ /**
+ * @param string $id
+ * @param string $valueType SMW type id
+ * @param string|bool $label user label or false (internal property)
+ * @param bool $isVisible only used if label is given, see isShown()
+ * @param bool $isAnnotable
+ * @param bool $isDeclarative
+ */
+ public function registerProperty(
+ string $id,
+ string $valueType,
+ $label = false,
+ bool $isVisible = false,
+ bool $isAnnotable = true,
+ bool $isDeclarative = false
+ ) {
+ }
+}