1 | <?php |
||
13 | class DataValueHandlers { |
||
14 | |||
15 | /** |
||
16 | * @var DataValueHandler[] |
||
17 | */ |
||
18 | private $mainSnakHandlers = array(); |
||
19 | |||
20 | /** |
||
21 | * @var DataValueHandler[] |
||
22 | */ |
||
23 | private $qualifierHandlers = array(); |
||
24 | |||
25 | public function addMainSnakHandler( $dataTypeId, DataValueHandler $handler ) { |
||
28 | |||
29 | public function addQualifierHandler( $dataTypeId, DataValueHandler $handler ) { |
||
32 | |||
33 | /** |
||
34 | * @param string $dataTypeId |
||
35 | * |
||
36 | * @return DataValueHandler |
||
37 | * @throws OutOfBoundsException |
||
38 | */ |
||
39 | public function getMainSnakHandler( $dataTypeId ) { |
||
46 | |||
47 | /** |
||
48 | * @param string $dataTypeId |
||
49 | * |
||
50 | * @return DataValueHandler |
||
51 | * @throws OutOfBoundsException |
||
52 | */ |
||
53 | public function getQualifierHandler( $dataTypeId ) { |
||
60 | |||
61 | /** |
||
62 | * @return DataValueHandler[] |
||
63 | */ |
||
64 | public function getMainSnakHandlers() { |
||
67 | |||
68 | /** |
||
69 | * @return DataValueHandler[] |
||
70 | */ |
||
71 | public function getQualifierHandlers() { |
||
74 | |||
75 | } |
||
76 |