summaryrefslogtreecommitdiff
blob: 506817e987af49dd488436fa50cad6413b796ee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
	) {
	}
}