1 | <?php |
||
10 | class VoidType implements IType |
||
11 | { |
||
12 | /** |
||
13 | * Gets the type code |
||
14 | * Note: implementation of IType::getTypeCode. |
||
15 | * |
||
16 | * @return TypeCode |
||
17 | */ |
||
18 | public function getTypeCode() |
||
22 | |||
23 | /** |
||
24 | * Checks this type (Void) is compatible with another type |
||
25 | * Note: implementation of IType::isCompatibleWith. |
||
26 | * |
||
27 | * @param IType $type Type to check compatibility |
||
28 | * |
||
29 | * @return bool |
||
30 | */ |
||
31 | public function isCompatibleWith(IType $type) |
||
35 | |||
36 | /** |
||
37 | * Validate a value in Astoria uri is in a format for this type |
||
38 | * Note: implementation of IType::validate. |
||
39 | * |
||
40 | * @param string $value The value to validate |
||
41 | * @param string &$outValue The stripped form of $value that can |
||
42 | * be used in PHP expressions |
||
43 | * |
||
44 | * @return bool |
||
45 | */ |
||
46 | public function validate($value, &$outValue) |
||
51 | |||
52 | /** |
||
53 | * Gets full name of this type in EDM namespace |
||
54 | * Note: implementation of IType::getFullTypeName. |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | public function getFullTypeName() |
||
62 | |||
63 | /** |
||
64 | * Converts the given string value to void type. |
||
65 | * |
||
66 | * @param string $stringValue value to convert |
||
67 | * |
||
68 | * @throws NotImplementedException |
||
69 | */ |
||
70 | public function convert($stringValue) |
||
74 | |||
75 | /** |
||
76 | * Convert the given value to a form that can be used in OData uri. |
||
77 | * |
||
78 | * @param string $value value to convert to OData |
||
79 | * |
||
80 | * @throws NotImplementedException |
||
81 | */ |
||
82 | public function convertToOData($value) |
||
86 | } |
||
87 |