| 1 | <?php |
||
| 14 | class DataType { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Identifier of this data type (also referred to as "property type"). |
||
| 18 | * |
||
| 19 | * @since 0.1 |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $typeId; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Identifier for the type of the DataValue. |
||
| 27 | * |
||
| 28 | * @since 0.1 |
||
| 29 | * |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | protected $dataValueType; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @since 0.5 |
||
| 36 | * |
||
| 37 | * @param string $typeId Identifier of this data type (also referred to as "property type"). |
||
| 38 | * @param string $dataValueType Identifier for the type of the DataValue. |
||
| 39 | * |
||
| 40 | * @throws InvalidArgumentException |
||
| 41 | */ |
||
| 42 | public function __construct( $typeId, $dataValueType ) { |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Returns the identifier of this data type (also referred to as "property type"). |
||
| 57 | * |
||
| 58 | * @since 0.1 |
||
| 59 | * |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | public function getId() { |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Returns the type of the DataValue used by this data type. |
||
| 68 | * |
||
| 69 | * @since 0.1 |
||
| 70 | * |
||
| 71 | * @return string |
||
| 72 | */ |
||
| 73 | public function getDataValueType() { |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @since 1.0 |
||
| 79 | * |
||
| 80 | * @return string |
||
| 81 | */ |
||
| 82 | public function getMessageKey() { |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @since 0.1 |
||
| 88 | * |
||
| 89 | * @return string[] |
||
| 90 | */ |
||
| 91 | public function toArray() { |
||
| 96 | |||
| 97 | } |
||
| 98 |