@@ -19,10 +19,10 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | class HTTPRequestMethod extends Enum { |
| 21 | 21 | |
| 22 | - const GET = "GET"; |
|
| 23 | - const POST = "POST"; |
|
| 24 | - const PUT = "PUT"; |
|
| 25 | - const DELETE = "DELETE"; |
|
| 26 | - const PATCH = "PATCH"; |
|
| 27 | - const MERGE = "MERGE"; |
|
| 22 | + const GET = "GET"; |
|
| 23 | + const POST = "POST"; |
|
| 24 | + const PUT = "PUT"; |
|
| 25 | + const DELETE = "DELETE"; |
|
| 26 | + const PATCH = "PATCH"; |
|
| 27 | + const MERGE = "MERGE"; |
|
| 28 | 28 | } |
| 29 | 29 | \ No newline at end of file |
@@ -80,16 +80,16 @@ discard block |
||
| 80 | 80 | return $this->_operationContext; |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - /** |
|
| 84 | - * @param IOperationContext $context the OperationContext implementation to use. If null the WebOperationContext |
|
| 85 | - * will be used. Defaults to null. |
|
| 86 | - */ |
|
| 87 | - public function __construct(IOperationContext $context = null) |
|
| 83 | + /** |
|
| 84 | + * @param IOperationContext $context the OperationContext implementation to use. If null the WebOperationContext |
|
| 85 | + * will be used. Defaults to null. |
|
| 86 | + */ |
|
| 87 | + public function __construct(IOperationContext $context = null) |
|
| 88 | 88 | { |
| 89 | 89 | if(is_null($context)){ |
| 90 | - $this->_operationContext = new WebOperationContext(); |
|
| 90 | + $this->_operationContext = new WebOperationContext(); |
|
| 91 | 91 | } else { |
| 92 | - $this->_operationContext = $context; |
|
| 92 | + $this->_operationContext = $context; |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | // getAbsoluteRequestUri can throw UrlFormatException |
@@ -99,13 +99,13 @@ discard block |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | - * Gets the absolute request Uri as Url instance |
|
| 103 | - * Note: This method will be called first time from constructor. |
|
| 104 | - * |
|
| 105 | - * @throws ODataException if AbsoluteRequestUri is not a valid URI |
|
| 106 | - * |
|
| 107 | - * @return Url |
|
| 108 | - */ |
|
| 102 | + * Gets the absolute request Uri as Url instance |
|
| 103 | + * Note: This method will be called first time from constructor. |
|
| 104 | + * |
|
| 105 | + * @throws ODataException if AbsoluteRequestUri is not a valid URI |
|
| 106 | + * |
|
| 107 | + * @return Url |
|
| 108 | + */ |
|
| 109 | 109 | public function getAbsoluteRequestUri() |
| 110 | 110 | { |
| 111 | 111 | if (is_null($this->_absoluteRequestUri)) { |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | try { |
| 115 | 115 | new Url($this->_absoluteRequestUriAsString); |
| 116 | 116 | } catch (UrlFormatException $exception) { |
| 117 | - throw ODataException::createBadRequestError($exception->getMessage()); |
|
| 117 | + throw ODataException::createBadRequestError($exception->getMessage()); |
|
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | $queryStartIndex = strpos($this->_absoluteRequestUriAsString, '?'); |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | $j = count($segments) - 1; |
| 195 | 195 | $k = $i; |
| 196 | 196 | if ($j > $i) { |
| 197 | - throw ODataException::createBadRequestError( |
|
| 197 | + throw ODataException::createBadRequestError( |
|
| 198 | 198 | Messages::hostRequestUriIsNotBasedOnRelativeUriInConfig( |
| 199 | 199 | $this->_absoluteRequestUriAsString, |
| 200 | 200 | $serviceUri |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | if ($j != -1) { |
| 210 | - throw ODataException::createBadRequestError( |
|
| 210 | + throw ODataException::createBadRequestError( |
|
| 211 | 211 | Messages::hostRequestUriIsNotBasedOnRelativeUriInConfig( |
| 212 | 212 | $this->_absoluteRequestUriAsString, |
| 213 | 213 | $serviceUri |
@@ -280,13 +280,13 @@ discard block |
||
| 280 | 280 | if (!empty($optionValue)) { |
| 281 | 281 | if ($optionValue[0] == '$') { |
| 282 | 282 | if ($this->_isODataQueryOption($optionValue)) { |
| 283 | - throw ODataException::createBadRequestError( |
|
| 283 | + throw ODataException::createBadRequestError( |
|
| 284 | 284 | Messages::hostODataQueryOptionFoundWithoutValue( |
| 285 | 285 | $optionValue |
| 286 | 286 | ) |
| 287 | 287 | ); |
| 288 | 288 | } else { |
| 289 | - throw ODataException::createBadRequestError( |
|
| 289 | + throw ODataException::createBadRequestError( |
|
| 290 | 290 | Messages::hostNonODataOptionBeginsWithSystemCharacter( |
| 291 | 291 | $optionValue |
| 292 | 292 | ) |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | } else { |
| 298 | 298 | if ($optionName[0] == '$') { |
| 299 | 299 | if (!$this->_isODataQueryOption($optionName)) { |
| 300 | - throw ODataException::createBadRequestError( |
|
| 300 | + throw ODataException::createBadRequestError( |
|
| 301 | 301 | Messages::hostNonODataOptionBeginsWithSystemCharacter( |
| 302 | 302 | $optionName |
| 303 | 303 | ) |
@@ -305,7 +305,7 @@ discard block |
||
| 305 | 305 | } |
| 306 | 306 | |
| 307 | 307 | if (array_search($optionName, $namesFound) !== false) { |
| 308 | - throw ODataException::createBadRequestError( |
|
| 308 | + throw ODataException::createBadRequestError( |
|
| 309 | 309 | Messages::hostODataQueryOptionCannotBeSpecifiedMoreThanOnce( |
| 310 | 310 | $optionName |
| 311 | 311 | ) |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | } |
| 314 | 314 | |
| 315 | 315 | if (empty($optionValue) && $optionValue !== '0') { |
| 316 | - throw ODataException::createBadRequestError( |
|
| 316 | + throw ODataException::createBadRequestError( |
|
| 317 | 317 | Messages::hostODataQueryOptionFoundWithoutValue( |
| 318 | 318 | $optionName |
| 319 | 319 | ) |
@@ -629,29 +629,29 @@ discard block |
||
| 629 | 629 | ->outgoingResponse()->addHeader($headerName, $headerValue); |
| 630 | 630 | } |
| 631 | 631 | |
| 632 | - /** |
|
| 633 | - * Translates the short $format forms into the full mime type forms |
|
| 634 | - * @param Version $responseVersion the version scheme to interpret the short form with |
|
| 635 | - * @param string $format the short $format form |
|
| 636 | - * @return string the full mime type corresponding to the short format form for the given version |
|
| 637 | - */ |
|
| 638 | - public static function translateFormatToMime(Version $responseVersion, $format){ |
|
| 632 | + /** |
|
| 633 | + * Translates the short $format forms into the full mime type forms |
|
| 634 | + * @param Version $responseVersion the version scheme to interpret the short form with |
|
| 635 | + * @param string $format the short $format form |
|
| 636 | + * @return string the full mime type corresponding to the short format form for the given version |
|
| 637 | + */ |
|
| 638 | + public static function translateFormatToMime(Version $responseVersion, $format){ |
|
| 639 | 639 | //TODO: should the version switches be off of the requestVersion, not the response version? see #91 |
| 640 | 640 | |
| 641 | 641 | switch($format) { |
| 642 | 642 | |
| 643 | - case ODataConstants::FORMAT_XML: |
|
| 644 | - $format = MimeTypes::MIME_APPLICATION_XML; |
|
| 645 | - break; |
|
| 643 | + case ODataConstants::FORMAT_XML: |
|
| 644 | + $format = MimeTypes::MIME_APPLICATION_XML; |
|
| 645 | + break; |
|
| 646 | 646 | |
| 647 | 647 | case ODataConstants::FORMAT_ATOM: |
| 648 | - $format = MimeTypes::MIME_APPLICATION_ATOM ; |
|
| 649 | - break; |
|
| 648 | + $format = MimeTypes::MIME_APPLICATION_ATOM ; |
|
| 649 | + break; |
|
| 650 | 650 | |
| 651 | 651 | case ODataConstants::FORMAT_VERBOSE_JSON: |
| 652 | 652 | if($responseVersion == Version::v3()){ |
| 653 | - //only translatable in 3.0 systems |
|
| 654 | - $format = MimeTypes::MIME_APPLICATION_JSON_VERBOSE; |
|
| 653 | + //only translatable in 3.0 systems |
|
| 654 | + $format = MimeTypes::MIME_APPLICATION_JSON_VERBOSE; |
|
| 655 | 655 | } |
| 656 | 656 | break; |
| 657 | 657 | |
@@ -659,13 +659,13 @@ discard block |
||
| 659 | 659 | if($responseVersion == Version::v3()){ |
| 660 | 660 | $format = MimeTypes::MIME_APPLICATION_JSON_MINIMAL_META; |
| 661 | 661 | } else{ |
| 662 | - $format = MimeTypes::MIME_APPLICATION_JSON; |
|
| 662 | + $format = MimeTypes::MIME_APPLICATION_JSON; |
|
| 663 | 663 | } |
| 664 | - break; |
|
| 664 | + break; |
|
| 665 | 665 | |
| 666 | 666 | } |
| 667 | 667 | |
| 668 | - return $format . ';q=1.0'; |
|
| 668 | + return $format . ';q=1.0'; |
|
| 669 | 669 | } |
| 670 | 670 | |
| 671 | 671 | |
@@ -152,10 +152,10 @@ |
||
| 152 | 152 | */ |
| 153 | 153 | public function getRequestHeader($key) |
| 154 | 154 | { |
| 155 | - //PHP normalizes header keys |
|
| 156 | - $trimmedKey = HttpProcessUtility::headerToServerKey(trim($key)); |
|
| 155 | + //PHP normalizes header keys |
|
| 156 | + $trimmedKey = HttpProcessUtility::headerToServerKey(trim($key)); |
|
| 157 | 157 | |
| 158 | - if (array_key_exists($trimmedKey, $this->_headers)) { |
|
| 158 | + if (array_key_exists($trimmedKey, $this->_headers)) { |
|
| 159 | 159 | return $this->_headers[$trimmedKey]; |
| 160 | 160 | } |
| 161 | 161 | |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | interface IExpressionProvider |
| 15 | 15 | { |
| 16 | 16 | |
| 17 | - //TODO: does this really need to be part of this interface? see #89 |
|
| 17 | + //TODO: does this really need to be part of this interface? see #89 |
|
| 18 | 18 | /** |
| 19 | 19 | * Get the name of the iterator |
| 20 | 20 | * |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public function __construct() |
| 50 | 50 | { |
| 51 | - $this->entityMapping = array(); |
|
| 51 | + $this->entityMapping = array(); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | */ |
| 71 | 71 | public function setResourceType(ResourceType $resourceType) |
| 72 | 72 | { |
| 73 | - $this->resourceType = $resourceType; |
|
| 73 | + $this->resourceType = $resourceType; |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
@@ -85,14 +85,14 @@ discard block |
||
| 85 | 85 | public function onLogicalExpression($expressionType, $left, $right) |
| 86 | 86 | { |
| 87 | 87 | switch($expressionType) { |
| 88 | - case ExpressionType::AND_LOGICAL: |
|
| 89 | - return $this->_prepareBinaryExpression(self::LOGICAL_AND, $left, $right); |
|
| 88 | + case ExpressionType::AND_LOGICAL: |
|
| 89 | + return $this->_prepareBinaryExpression(self::LOGICAL_AND, $left, $right); |
|
| 90 | 90 | |
| 91 | - case ExpressionType::OR_LOGICAL: |
|
| 92 | - return $this->_prepareBinaryExpression(self::LOGICAL_OR, $left, $right); |
|
| 91 | + case ExpressionType::OR_LOGICAL: |
|
| 92 | + return $this->_prepareBinaryExpression(self::LOGICAL_OR, $left, $right); |
|
| 93 | 93 | |
| 94 | - default: |
|
| 95 | - throw new \InvalidArgumentException('onLogicalExpression'); |
|
| 94 | + default: |
|
| 95 | + throw new \InvalidArgumentException('onLogicalExpression'); |
|
| 96 | 96 | } |
| 97 | 97 | } |
| 98 | 98 | |
@@ -108,23 +108,23 @@ discard block |
||
| 108 | 108 | public function onArithmeticExpression($expressionType, $left, $right) |
| 109 | 109 | { |
| 110 | 110 | switch($expressionType) { |
| 111 | - case ExpressionType::MULTIPLY: |
|
| 112 | - return $this->_prepareBinaryExpression(self::MULTIPLY, $left, $right); |
|
| 111 | + case ExpressionType::MULTIPLY: |
|
| 112 | + return $this->_prepareBinaryExpression(self::MULTIPLY, $left, $right); |
|
| 113 | 113 | |
| 114 | - case ExpressionType::DIVIDE: |
|
| 115 | - return $this->_prepareBinaryExpression(self::DIVIDE, $left, $right); |
|
| 114 | + case ExpressionType::DIVIDE: |
|
| 115 | + return $this->_prepareBinaryExpression(self::DIVIDE, $left, $right); |
|
| 116 | 116 | |
| 117 | - case ExpressionType::MODULO: |
|
| 118 | - return $this->_prepareBinaryExpression(self::MODULO, $left, $right); |
|
| 117 | + case ExpressionType::MODULO: |
|
| 118 | + return $this->_prepareBinaryExpression(self::MODULO, $left, $right); |
|
| 119 | 119 | |
| 120 | - case ExpressionType::ADD: |
|
| 121 | - return $this->_prepareBinaryExpression(self::ADD, $left, $right); |
|
| 120 | + case ExpressionType::ADD: |
|
| 121 | + return $this->_prepareBinaryExpression(self::ADD, $left, $right); |
|
| 122 | 122 | |
| 123 | - case ExpressionType::SUBTRACT: |
|
| 124 | - return $this->_prepareBinaryExpression(self::SUBTRACT, $left, $right); |
|
| 123 | + case ExpressionType::SUBTRACT: |
|
| 124 | + return $this->_prepareBinaryExpression(self::SUBTRACT, $left, $right); |
|
| 125 | 125 | |
| 126 | - default: |
|
| 127 | - throw new \InvalidArgumentException('onArithmeticExpression'); |
|
| 126 | + default: |
|
| 127 | + throw new \InvalidArgumentException('onArithmeticExpression'); |
|
| 128 | 128 | } |
| 129 | 129 | } |
| 130 | 130 | |
@@ -140,26 +140,26 @@ discard block |
||
| 140 | 140 | public function onRelationalExpression($expressionType, $left, $right) |
| 141 | 141 | { |
| 142 | 142 | switch($expressionType) { |
| 143 | - case ExpressionType::GREATERTHAN: |
|
| 144 | - return $this->_prepareBinaryExpression(self::GREATER_THAN, $left, $right); |
|
| 143 | + case ExpressionType::GREATERTHAN: |
|
| 144 | + return $this->_prepareBinaryExpression(self::GREATER_THAN, $left, $right); |
|
| 145 | 145 | |
| 146 | - case ExpressionType::GREATERTHAN_OR_EQUAL: |
|
| 147 | - return $this->_prepareBinaryExpression(self::GREATER_THAN_OR_EQUAL, $left, $right); |
|
| 146 | + case ExpressionType::GREATERTHAN_OR_EQUAL: |
|
| 147 | + return $this->_prepareBinaryExpression(self::GREATER_THAN_OR_EQUAL, $left, $right); |
|
| 148 | 148 | |
| 149 | - case ExpressionType::LESSTHAN: |
|
| 150 | - return $this->_prepareBinaryExpression(self::LESS_THAN, $left, $right); |
|
| 149 | + case ExpressionType::LESSTHAN: |
|
| 150 | + return $this->_prepareBinaryExpression(self::LESS_THAN, $left, $right); |
|
| 151 | 151 | |
| 152 | - case ExpressionType::LESSTHAN_OR_EQUAL: |
|
| 153 | - return $this->_prepareBinaryExpression(self::LESS_THAN_OR_EQUAL, $left, $right); |
|
| 152 | + case ExpressionType::LESSTHAN_OR_EQUAL: |
|
| 153 | + return $this->_prepareBinaryExpression(self::LESS_THAN_OR_EQUAL, $left, $right); |
|
| 154 | 154 | |
| 155 | - case ExpressionType::EQUAL: |
|
| 156 | - return $this->_prepareBinaryExpression(self::EQUAL, $left, $right); |
|
| 155 | + case ExpressionType::EQUAL: |
|
| 156 | + return $this->_prepareBinaryExpression(self::EQUAL, $left, $right); |
|
| 157 | 157 | |
| 158 | - case ExpressionType::NOTEQUAL: |
|
| 159 | - return $this->_prepareBinaryExpression(self::NOT_EQUAL, $left, $right); |
|
| 158 | + case ExpressionType::NOTEQUAL: |
|
| 159 | + return $this->_prepareBinaryExpression(self::NOT_EQUAL, $left, $right); |
|
| 160 | 160 | |
| 161 | - default: |
|
| 162 | - throw new \InvalidArgumentException('onArithmeticExpression'); |
|
| 161 | + default: |
|
| 162 | + throw new \InvalidArgumentException('onArithmeticExpression'); |
|
| 163 | 163 | } |
| 164 | 164 | } |
| 165 | 165 | |
@@ -174,14 +174,14 @@ discard block |
||
| 174 | 174 | public function onUnaryExpression($expressionType, $child) |
| 175 | 175 | { |
| 176 | 176 | switch($expressionType) { |
| 177 | - case ExpressionType::NEGATE: |
|
| 178 | - return $this->_prepareUnaryExpression(self::NEGATE, $child); |
|
| 177 | + case ExpressionType::NEGATE: |
|
| 178 | + return $this->_prepareUnaryExpression(self::NEGATE, $child); |
|
| 179 | 179 | |
| 180 | - case ExpressionType::NOT_LOGICAL: |
|
| 181 | - return $this->_prepareUnaryExpression(self::LOGICAL_NOT, $child); |
|
| 180 | + case ExpressionType::NOT_LOGICAL: |
|
| 181 | + return $this->_prepareUnaryExpression(self::LOGICAL_NOT, $child); |
|
| 182 | 182 | |
| 183 | - default: |
|
| 184 | - throw new \InvalidArgumentException('onUnaryExpression'); |
|
| 183 | + default: |
|
| 184 | + throw new \InvalidArgumentException('onUnaryExpression'); |
|
| 185 | 185 | } |
| 186 | 186 | } |
| 187 | 187 | |
@@ -219,11 +219,11 @@ discard block |
||
| 219 | 219 | $entityTypeName = $this->resourceType->getName(); |
| 220 | 220 | $propertyName = $parent->getResourceProperty()->getName(); |
| 221 | 221 | if (is_array($this->entityMapping)) { |
| 222 | - if (array_key_exists($entityTypeName, $this->entityMapping)) { |
|
| 223 | - if (array_key_exists($propertyName, $this->entityMapping[$entityTypeName])) { |
|
| 224 | - return $this->entityMapping[$entityTypeName][$propertyName]; |
|
| 225 | - } |
|
| 226 | - } |
|
| 222 | + if (array_key_exists($entityTypeName, $this->entityMapping)) { |
|
| 223 | + if (array_key_exists($propertyName, $this->entityMapping[$entityTypeName])) { |
|
| 224 | + return $this->entityMapping[$entityTypeName][$propertyName]; |
|
| 225 | + } |
|
| 226 | + } |
|
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | return $propertyName; |
@@ -240,85 +240,85 @@ discard block |
||
| 240 | 240 | public function onFunctionCallExpression($functionDescription, $params) |
| 241 | 241 | { |
| 242 | 242 | switch($functionDescription->name) { |
| 243 | - case ODataConstants::STRFUN_COMPARE: |
|
| 244 | - return "STRCMP($params[0], $params[1])"; |
|
| 243 | + case ODataConstants::STRFUN_COMPARE: |
|
| 244 | + return "STRCMP($params[0], $params[1])"; |
|
| 245 | 245 | |
| 246 | - case ODataConstants::STRFUN_ENDSWITH: |
|
| 247 | - return "(STRCMP($params[1],RIGHT($params[0],LENGTH($params[1]))) = 0)"; |
|
| 246 | + case ODataConstants::STRFUN_ENDSWITH: |
|
| 247 | + return "(STRCMP($params[1],RIGHT($params[0],LENGTH($params[1]))) = 0)"; |
|
| 248 | 248 | |
| 249 | - case ODataConstants::STRFUN_INDEXOF: |
|
| 250 | - return "INSTR($params[0], $params[1]) - 1"; |
|
| 249 | + case ODataConstants::STRFUN_INDEXOF: |
|
| 250 | + return "INSTR($params[0], $params[1]) - 1"; |
|
| 251 | 251 | |
| 252 | - case ODataConstants::STRFUN_REPLACE: |
|
| 253 | - return "REPLACE($params[0],$params[1],$params[2])"; |
|
| 252 | + case ODataConstants::STRFUN_REPLACE: |
|
| 253 | + return "REPLACE($params[0],$params[1],$params[2])"; |
|
| 254 | 254 | |
| 255 | - case ODataConstants::STRFUN_STARTSWITH: |
|
| 256 | - return "(STRCMP($params[1],LEFT($params[0],LENGTH($params[1]))) = 0)"; |
|
| 255 | + case ODataConstants::STRFUN_STARTSWITH: |
|
| 256 | + return "(STRCMP($params[1],LEFT($params[0],LENGTH($params[1]))) = 0)"; |
|
| 257 | 257 | |
| 258 | - case ODataConstants::STRFUN_TOLOWER: |
|
| 259 | - return "LOWER($params[0])"; |
|
| 258 | + case ODataConstants::STRFUN_TOLOWER: |
|
| 259 | + return "LOWER($params[0])"; |
|
| 260 | 260 | |
| 261 | - case ODataConstants::STRFUN_TOUPPER: |
|
| 262 | - return "UPPER($params[0])"; |
|
| 261 | + case ODataConstants::STRFUN_TOUPPER: |
|
| 262 | + return "UPPER($params[0])"; |
|
| 263 | 263 | |
| 264 | - case ODataConstants::STRFUN_TRIM: |
|
| 265 | - return "TRIM($params[0])"; |
|
| 264 | + case ODataConstants::STRFUN_TRIM: |
|
| 265 | + return "TRIM($params[0])"; |
|
| 266 | 266 | |
| 267 | - case ODataConstants::STRFUN_SUBSTRING: |
|
| 268 | - return count($params) == 3 ? |
|
| 269 | - "SUBSTRING($params[0], $params[1] + 1, $params[2])" : |
|
| 270 | - "SUBSTRING($params[0], $params[1] + 1)"; |
|
| 267 | + case ODataConstants::STRFUN_SUBSTRING: |
|
| 268 | + return count($params) == 3 ? |
|
| 269 | + "SUBSTRING($params[0], $params[1] + 1, $params[2])" : |
|
| 270 | + "SUBSTRING($params[0], $params[1] + 1)"; |
|
| 271 | 271 | |
| 272 | - case ODataConstants::STRFUN_SUBSTRINGOF: |
|
| 273 | - return "(LOCATE($params[0], $params[1]) > 0)"; |
|
| 272 | + case ODataConstants::STRFUN_SUBSTRINGOF: |
|
| 273 | + return "(LOCATE($params[0], $params[1]) > 0)"; |
|
| 274 | 274 | |
| 275 | - case ODataConstants::STRFUN_CONCAT: |
|
| 276 | - return "CONCAT($params[0],$params[1])"; |
|
| 275 | + case ODataConstants::STRFUN_CONCAT: |
|
| 276 | + return "CONCAT($params[0],$params[1])"; |
|
| 277 | 277 | |
| 278 | - case ODataConstants::STRFUN_LENGTH: |
|
| 279 | - return "LENGTH($params[0])"; |
|
| 278 | + case ODataConstants::STRFUN_LENGTH: |
|
| 279 | + return "LENGTH($params[0])"; |
|
| 280 | 280 | |
| 281 | - case ODataConstants::GUIDFUN_EQUAL: |
|
| 282 | - return "STRCMP($params[0], $params[1])"; |
|
| 281 | + case ODataConstants::GUIDFUN_EQUAL: |
|
| 282 | + return "STRCMP($params[0], $params[1])"; |
|
| 283 | 283 | |
| 284 | - case ODataConstants::DATETIME_COMPARE: |
|
| 285 | - return "DATETIMECMP($params[0]; $params[1])"; |
|
| 284 | + case ODataConstants::DATETIME_COMPARE: |
|
| 285 | + return "DATETIMECMP($params[0]; $params[1])"; |
|
| 286 | 286 | |
| 287 | - case ODataConstants::DATETIME_YEAR: |
|
| 288 | - return "EXTRACT(YEAR from ".$params[0].")"; |
|
| 287 | + case ODataConstants::DATETIME_YEAR: |
|
| 288 | + return "EXTRACT(YEAR from ".$params[0].")"; |
|
| 289 | 289 | |
| 290 | - case ODataConstants::DATETIME_MONTH: |
|
| 291 | - return "EXTRACT(MONTH from ".$params[0].")"; |
|
| 290 | + case ODataConstants::DATETIME_MONTH: |
|
| 291 | + return "EXTRACT(MONTH from ".$params[0].")"; |
|
| 292 | 292 | |
| 293 | - case ODataConstants::DATETIME_DAY: |
|
| 294 | - return "EXTRACT(DAY from ".$params[0].")"; |
|
| 293 | + case ODataConstants::DATETIME_DAY: |
|
| 294 | + return "EXTRACT(DAY from ".$params[0].")"; |
|
| 295 | 295 | |
| 296 | - case ODataConstants::DATETIME_HOUR: |
|
| 297 | - return "EXTRACT(HOUR from ".$params[0].")"; |
|
| 296 | + case ODataConstants::DATETIME_HOUR: |
|
| 297 | + return "EXTRACT(HOUR from ".$params[0].")"; |
|
| 298 | 298 | |
| 299 | - case ODataConstants::DATETIME_MINUTE: |
|
| 300 | - return "EXTRACT(MINUTE from ".$params[0].")"; |
|
| 299 | + case ODataConstants::DATETIME_MINUTE: |
|
| 300 | + return "EXTRACT(MINUTE from ".$params[0].")"; |
|
| 301 | 301 | |
| 302 | - case ODataConstants::DATETIME_SECOND: |
|
| 303 | - return "EXTRACT(SECOND from ".$params[0].")"; |
|
| 302 | + case ODataConstants::DATETIME_SECOND: |
|
| 303 | + return "EXTRACT(SECOND from ".$params[0].")"; |
|
| 304 | 304 | |
| 305 | - case ODataConstants::MATHFUN_ROUND: |
|
| 306 | - return "ROUND($params[0])"; |
|
| 305 | + case ODataConstants::MATHFUN_ROUND: |
|
| 306 | + return "ROUND($params[0])"; |
|
| 307 | 307 | |
| 308 | - case ODataConstants::MATHFUN_CEILING: |
|
| 309 | - return "CEIL($params[0])"; |
|
| 308 | + case ODataConstants::MATHFUN_CEILING: |
|
| 309 | + return "CEIL($params[0])"; |
|
| 310 | 310 | |
| 311 | - case ODataConstants::MATHFUN_FLOOR: |
|
| 312 | - return "FLOOR($params[0])"; |
|
| 311 | + case ODataConstants::MATHFUN_FLOOR: |
|
| 312 | + return "FLOOR($params[0])"; |
|
| 313 | 313 | |
| 314 | - case ODataConstants::BINFUL_EQUAL: |
|
| 315 | - return "($params[0] = $params[1])"; |
|
| 314 | + case ODataConstants::BINFUL_EQUAL: |
|
| 315 | + return "($params[0] = $params[1])"; |
|
| 316 | 316 | |
| 317 | - case 'is_null': |
|
| 318 | - return "is_null($params[0])"; |
|
| 317 | + case 'is_null': |
|
| 318 | + return "is_null($params[0])"; |
|
| 319 | 319 | |
| 320 | - default: |
|
| 321 | - throw new \InvalidArgumentException('onFunctionCallExpression'); |
|
| 320 | + default: |
|
| 321 | + throw new \InvalidArgumentException('onFunctionCallExpression'); |
|
| 322 | 322 | } |
| 323 | 323 | } |
| 324 | 324 | |
@@ -333,14 +333,14 @@ discard block |
||
| 333 | 333 | */ |
| 334 | 334 | private function _prepareBinaryExpression($operator, $left, $right) |
| 335 | 335 | { |
| 336 | - //DATETIMECMP |
|
| 337 | - if (!substr_compare($left, "DATETIMECMP", 0, 11)) { |
|
| 338 | - $str = explode(';', $left, 2); |
|
| 339 | - $str[0] = str_replace('DATETIMECMP', '', $str[0]); |
|
| 340 | - return self::OPEN_BRACKET |
|
| 341 | - . $str[0] . ' ' . $operator |
|
| 342 | - . ' ' . $str[1] . self::CLOSE_BRACKET; |
|
| 343 | - } |
|
| 336 | + //DATETIMECMP |
|
| 337 | + if (!substr_compare($left, "DATETIMECMP", 0, 11)) { |
|
| 338 | + $str = explode(';', $left, 2); |
|
| 339 | + $str[0] = str_replace('DATETIMECMP', '', $str[0]); |
|
| 340 | + return self::OPEN_BRACKET |
|
| 341 | + . $str[0] . ' ' . $operator |
|
| 342 | + . ' ' . $str[1] . self::CLOSE_BRACKET; |
|
| 343 | + } |
|
| 344 | 344 | |
| 345 | 345 | return self::OPEN_BRACKET . $left . ' ' . $operator . ' ' . $right . self::CLOSE_BRACKET; |
| 346 | 346 | } |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | public function setResourceType(ResourceType $resourceType) |
| 82 | 82 | { |
| 83 | - $this->_resourceType = $resourceType; |
|
| 83 | + $this->_resourceType = $resourceType; |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -95,14 +95,14 @@ discard block |
||
| 95 | 95 | public function onLogicalExpression($expressionType, $left, $right) |
| 96 | 96 | { |
| 97 | 97 | switch($expressionType) { |
| 98 | - case ExpressionType::AND_LOGICAL: |
|
| 99 | - return $this->_prepareBinaryExpression(self::LOGICAL_AND, $left, $right); |
|
| 98 | + case ExpressionType::AND_LOGICAL: |
|
| 99 | + return $this->_prepareBinaryExpression(self::LOGICAL_AND, $left, $right); |
|
| 100 | 100 | |
| 101 | - case ExpressionType::OR_LOGICAL: |
|
| 102 | - return $this->_prepareBinaryExpression(self::LOGICAL_OR, $left, $right); |
|
| 101 | + case ExpressionType::OR_LOGICAL: |
|
| 102 | + return $this->_prepareBinaryExpression(self::LOGICAL_OR, $left, $right); |
|
| 103 | 103 | |
| 104 | - default: |
|
| 105 | - throw new \InvalidArgumentException('onLogicalExpression'); |
|
| 104 | + default: |
|
| 105 | + throw new \InvalidArgumentException('onLogicalExpression'); |
|
| 106 | 106 | } |
| 107 | 107 | } |
| 108 | 108 | |
@@ -118,23 +118,23 @@ discard block |
||
| 118 | 118 | public function onArithmeticExpression($expressionType, $left, $right) |
| 119 | 119 | { |
| 120 | 120 | switch($expressionType) { |
| 121 | - case ExpressionType::MULTIPLY: |
|
| 122 | - return $this->_prepareBinaryExpression(self::MULTIPLY, $left, $right); |
|
| 121 | + case ExpressionType::MULTIPLY: |
|
| 122 | + return $this->_prepareBinaryExpression(self::MULTIPLY, $left, $right); |
|
| 123 | 123 | |
| 124 | - case ExpressionType::DIVIDE: |
|
| 125 | - return $this->_prepareBinaryExpression(self::DIVIDE, $left, $right); |
|
| 124 | + case ExpressionType::DIVIDE: |
|
| 125 | + return $this->_prepareBinaryExpression(self::DIVIDE, $left, $right); |
|
| 126 | 126 | |
| 127 | - case ExpressionType::MODULO: |
|
| 128 | - return $this->_prepareBinaryExpression(self::MODULO, $left, $right); |
|
| 127 | + case ExpressionType::MODULO: |
|
| 128 | + return $this->_prepareBinaryExpression(self::MODULO, $left, $right); |
|
| 129 | 129 | |
| 130 | - case ExpressionType::ADD: |
|
| 131 | - return $this->_prepareBinaryExpression(self::ADD, $left, $right); |
|
| 130 | + case ExpressionType::ADD: |
|
| 131 | + return $this->_prepareBinaryExpression(self::ADD, $left, $right); |
|
| 132 | 132 | |
| 133 | - case ExpressionType::SUBTRACT: |
|
| 134 | - return $this->_prepareBinaryExpression(self::SUBTRACT, $left, $right); |
|
| 133 | + case ExpressionType::SUBTRACT: |
|
| 134 | + return $this->_prepareBinaryExpression(self::SUBTRACT, $left, $right); |
|
| 135 | 135 | |
| 136 | - default: |
|
| 137 | - throw new \InvalidArgumentException('onArithmeticExpression'); |
|
| 136 | + default: |
|
| 137 | + throw new \InvalidArgumentException('onArithmeticExpression'); |
|
| 138 | 138 | } |
| 139 | 139 | } |
| 140 | 140 | |
@@ -150,26 +150,26 @@ discard block |
||
| 150 | 150 | public function onRelationalExpression($expressionType, $left, $right) |
| 151 | 151 | { |
| 152 | 152 | switch($expressionType) { |
| 153 | - case ExpressionType::GREATERTHAN: |
|
| 154 | - return $this->_prepareBinaryExpression(self::GREATER_THAN, $left, $right); |
|
| 153 | + case ExpressionType::GREATERTHAN: |
|
| 154 | + return $this->_prepareBinaryExpression(self::GREATER_THAN, $left, $right); |
|
| 155 | 155 | |
| 156 | - case ExpressionType::GREATERTHAN_OR_EQUAL: |
|
| 157 | - return $this->_prepareBinaryExpression(self::GREATER_THAN_OR_EQUAL, $left, $right); |
|
| 156 | + case ExpressionType::GREATERTHAN_OR_EQUAL: |
|
| 157 | + return $this->_prepareBinaryExpression(self::GREATER_THAN_OR_EQUAL, $left, $right); |
|
| 158 | 158 | |
| 159 | - case ExpressionType::LESSTHAN: |
|
| 160 | - return $this->_prepareBinaryExpression(self::LESS_THAN, $left, $right); |
|
| 159 | + case ExpressionType::LESSTHAN: |
|
| 160 | + return $this->_prepareBinaryExpression(self::LESS_THAN, $left, $right); |
|
| 161 | 161 | |
| 162 | - case ExpressionType::LESSTHAN_OR_EQUAL: |
|
| 163 | - return $this->_prepareBinaryExpression(self::LESS_THAN_OR_EQUAL, $left, $right); |
|
| 162 | + case ExpressionType::LESSTHAN_OR_EQUAL: |
|
| 163 | + return $this->_prepareBinaryExpression(self::LESS_THAN_OR_EQUAL, $left, $right); |
|
| 164 | 164 | |
| 165 | - case ExpressionType::EQUAL: |
|
| 166 | - return $this->_prepareBinaryExpression(self::EQUAL, $left, $right); |
|
| 165 | + case ExpressionType::EQUAL: |
|
| 166 | + return $this->_prepareBinaryExpression(self::EQUAL, $left, $right); |
|
| 167 | 167 | |
| 168 | - case ExpressionType::NOTEQUAL: |
|
| 169 | - return $this->_prepareBinaryExpression(self::NOT_EQUAL, $left, $right); |
|
| 168 | + case ExpressionType::NOTEQUAL: |
|
| 169 | + return $this->_prepareBinaryExpression(self::NOT_EQUAL, $left, $right); |
|
| 170 | 170 | |
| 171 | - default: |
|
| 172 | - throw new \InvalidArgumentException('onArithmeticExpression'); |
|
| 171 | + default: |
|
| 172 | + throw new \InvalidArgumentException('onArithmeticExpression'); |
|
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | 175 | |
@@ -184,14 +184,14 @@ discard block |
||
| 184 | 184 | public function onUnaryExpression($expressionType, $child) |
| 185 | 185 | { |
| 186 | 186 | switch($expressionType) { |
| 187 | - case ExpressionType::NEGATE: |
|
| 188 | - return $this->_prepareUnaryExpression(self::NEGATE, $child); |
|
| 187 | + case ExpressionType::NEGATE: |
|
| 188 | + return $this->_prepareUnaryExpression(self::NEGATE, $child); |
|
| 189 | 189 | |
| 190 | - case ExpressionType::NOT_LOGICAL: |
|
| 191 | - return $this->_prepareUnaryExpression(self::LOGICAL_NOT, $child); |
|
| 190 | + case ExpressionType::NOT_LOGICAL: |
|
| 191 | + return $this->_prepareUnaryExpression(self::LOGICAL_NOT, $child); |
|
| 192 | 192 | |
| 193 | - default: |
|
| 194 | - throw new \InvalidArgumentException('onUnaryExpression'); |
|
| 193 | + default: |
|
| 194 | + throw new \InvalidArgumentException('onUnaryExpression'); |
|
| 195 | 195 | } |
| 196 | 196 | } |
| 197 | 197 | |
@@ -247,85 +247,85 @@ discard block |
||
| 247 | 247 | public function onFunctionCallExpression($functionDescription, $params) |
| 248 | 248 | { |
| 249 | 249 | switch($functionDescription->name) { |
| 250 | - case ODataConstants::STRFUN_COMPARE: |
|
| 251 | - return "strcmp($params[0], $params[1])"; |
|
| 250 | + case ODataConstants::STRFUN_COMPARE: |
|
| 251 | + return "strcmp($params[0], $params[1])"; |
|
| 252 | 252 | |
| 253 | - case ODataConstants::STRFUN_ENDSWITH: |
|
| 254 | - return "(strcmp(substr($params[0], strlen($params[0]) - strlen($params[1])), $params[1]) === 0)"; |
|
| 253 | + case ODataConstants::STRFUN_ENDSWITH: |
|
| 254 | + return "(strcmp(substr($params[0], strlen($params[0]) - strlen($params[1])), $params[1]) === 0)"; |
|
| 255 | 255 | |
| 256 | - case ODataConstants::STRFUN_INDEXOF: |
|
| 257 | - return "strpos($params[0], $params[1])"; |
|
| 256 | + case ODataConstants::STRFUN_INDEXOF: |
|
| 257 | + return "strpos($params[0], $params[1])"; |
|
| 258 | 258 | |
| 259 | - case ODataConstants::STRFUN_REPLACE: |
|
| 260 | - return "str_replace($params[1], $params[2], $params[0])"; |
|
| 259 | + case ODataConstants::STRFUN_REPLACE: |
|
| 260 | + return "str_replace($params[1], $params[2], $params[0])"; |
|
| 261 | 261 | |
| 262 | - case ODataConstants::STRFUN_STARTSWITH: |
|
| 263 | - return "(strpos($params[0], $params[1]) === 0)"; |
|
| 262 | + case ODataConstants::STRFUN_STARTSWITH: |
|
| 263 | + return "(strpos($params[0], $params[1]) === 0)"; |
|
| 264 | 264 | |
| 265 | - case ODataConstants::STRFUN_TOLOWER: |
|
| 266 | - return "strtolower($params[0])"; |
|
| 265 | + case ODataConstants::STRFUN_TOLOWER: |
|
| 266 | + return "strtolower($params[0])"; |
|
| 267 | 267 | |
| 268 | - case ODataConstants::STRFUN_TOUPPER: |
|
| 269 | - return "strtoupper($params[0])"; |
|
| 268 | + case ODataConstants::STRFUN_TOUPPER: |
|
| 269 | + return "strtoupper($params[0])"; |
|
| 270 | 270 | |
| 271 | - case ODataConstants::STRFUN_TRIM: |
|
| 272 | - return "trim($params[0])"; |
|
| 271 | + case ODataConstants::STRFUN_TRIM: |
|
| 272 | + return "trim($params[0])"; |
|
| 273 | 273 | |
| 274 | - case ODataConstants::STRFUN_SUBSTRING: |
|
| 275 | - return count($params) == 3 ? |
|
| 276 | - "substr($params[0], $params[1], $params[2])" : |
|
| 277 | - "substr($params[0], $params[1])"; |
|
| 274 | + case ODataConstants::STRFUN_SUBSTRING: |
|
| 275 | + return count($params) == 3 ? |
|
| 276 | + "substr($params[0], $params[1], $params[2])" : |
|
| 277 | + "substr($params[0], $params[1])"; |
|
| 278 | 278 | |
| 279 | - case ODataConstants::STRFUN_SUBSTRINGOF: |
|
| 280 | - return "(strpos($params[1], $params[0]) !== false)"; |
|
| 279 | + case ODataConstants::STRFUN_SUBSTRINGOF: |
|
| 280 | + return "(strpos($params[1], $params[0]) !== false)"; |
|
| 281 | 281 | |
| 282 | - case ODataConstants::STRFUN_CONCAT: |
|
| 283 | - return $params[0] . ' . ' . $params[1]; |
|
| 282 | + case ODataConstants::STRFUN_CONCAT: |
|
| 283 | + return $params[0] . ' . ' . $params[1]; |
|
| 284 | 284 | |
| 285 | - case ODataConstants::STRFUN_LENGTH: |
|
| 286 | - return "strlen($params[0])"; |
|
| 285 | + case ODataConstants::STRFUN_LENGTH: |
|
| 286 | + return "strlen($params[0])"; |
|
| 287 | 287 | |
| 288 | - case ODataConstants::GUIDFUN_EQUAL: |
|
| 289 | - return self::TYPE_NAMESPACE . "Guid::guidEqual($params[0], $params[1])"; |
|
| 288 | + case ODataConstants::GUIDFUN_EQUAL: |
|
| 289 | + return self::TYPE_NAMESPACE . "Guid::guidEqual($params[0], $params[1])"; |
|
| 290 | 290 | |
| 291 | - case ODataConstants::DATETIME_COMPARE: |
|
| 292 | - return self::TYPE_NAMESPACE . "DateTime::dateTimeCmp($params[0], $params[1])"; |
|
| 291 | + case ODataConstants::DATETIME_COMPARE: |
|
| 292 | + return self::TYPE_NAMESPACE . "DateTime::dateTimeCmp($params[0], $params[1])"; |
|
| 293 | 293 | |
| 294 | - case ODataConstants::DATETIME_YEAR: |
|
| 295 | - return self::TYPE_NAMESPACE . "DateTime::year($params[0])"; |
|
| 294 | + case ODataConstants::DATETIME_YEAR: |
|
| 295 | + return self::TYPE_NAMESPACE . "DateTime::year($params[0])"; |
|
| 296 | 296 | |
| 297 | - case ODataConstants::DATETIME_MONTH: |
|
| 298 | - return self::TYPE_NAMESPACE . "DateTime::month($params[0])"; |
|
| 297 | + case ODataConstants::DATETIME_MONTH: |
|
| 298 | + return self::TYPE_NAMESPACE . "DateTime::month($params[0])"; |
|
| 299 | 299 | |
| 300 | - case ODataConstants::DATETIME_DAY: |
|
| 301 | - return self::TYPE_NAMESPACE . "DateTime::day($params[0])"; |
|
| 300 | + case ODataConstants::DATETIME_DAY: |
|
| 301 | + return self::TYPE_NAMESPACE . "DateTime::day($params[0])"; |
|
| 302 | 302 | |
| 303 | - case ODataConstants::DATETIME_HOUR: |
|
| 304 | - return self::TYPE_NAMESPACE . "DateTime::hour($params[0])"; |
|
| 303 | + case ODataConstants::DATETIME_HOUR: |
|
| 304 | + return self::TYPE_NAMESPACE . "DateTime::hour($params[0])"; |
|
| 305 | 305 | |
| 306 | - case ODataConstants::DATETIME_MINUTE: |
|
| 307 | - return self::TYPE_NAMESPACE . "DateTime::minute($params[0])"; |
|
| 306 | + case ODataConstants::DATETIME_MINUTE: |
|
| 307 | + return self::TYPE_NAMESPACE . "DateTime::minute($params[0])"; |
|
| 308 | 308 | |
| 309 | - case ODataConstants::DATETIME_SECOND: |
|
| 310 | - return self::TYPE_NAMESPACE . "DateTime::second($params[0])"; |
|
| 309 | + case ODataConstants::DATETIME_SECOND: |
|
| 310 | + return self::TYPE_NAMESPACE . "DateTime::second($params[0])"; |
|
| 311 | 311 | |
| 312 | - case ODataConstants::MATHFUN_ROUND: |
|
| 313 | - return "round($params[0])"; |
|
| 312 | + case ODataConstants::MATHFUN_ROUND: |
|
| 313 | + return "round($params[0])"; |
|
| 314 | 314 | |
| 315 | - case ODataConstants::MATHFUN_CEILING: |
|
| 316 | - return "ceil($params[0])"; |
|
| 315 | + case ODataConstants::MATHFUN_CEILING: |
|
| 316 | + return "ceil($params[0])"; |
|
| 317 | 317 | |
| 318 | - case ODataConstants::MATHFUN_FLOOR: |
|
| 319 | - return "floor($params[0])"; |
|
| 318 | + case ODataConstants::MATHFUN_FLOOR: |
|
| 319 | + return "floor($params[0])"; |
|
| 320 | 320 | |
| 321 | - case ODataConstants::BINFUL_EQUAL: |
|
| 322 | - return self::TYPE_NAMESPACE . "Binary::binaryEqual($params[0], $params[1])"; |
|
| 321 | + case ODataConstants::BINFUL_EQUAL: |
|
| 322 | + return self::TYPE_NAMESPACE . "Binary::binaryEqual($params[0], $params[1])"; |
|
| 323 | 323 | |
| 324 | - case 'is_null': |
|
| 325 | - return "is_null($params[0])"; |
|
| 324 | + case 'is_null': |
|
| 325 | + return "is_null($params[0])"; |
|
| 326 | 326 | |
| 327 | - default: |
|
| 328 | - throw new \InvalidArgumentException('onFunctionCallExpression'); |
|
| 327 | + default: |
|
| 328 | + throw new \InvalidArgumentException('onFunctionCallExpression'); |
|
| 329 | 329 | } |
| 330 | 330 | } |
| 331 | 331 | |
@@ -172,7 +172,7 @@ |
||
| 172 | 172 | private function _isValidResourcePropertyKind($kind) |
| 173 | 173 | { |
| 174 | 174 | return |
| 175 | - !($kind != ResourcePropertyKind::RESOURCE_REFERENCE && |
|
| 175 | + !($kind != ResourcePropertyKind::RESOURCE_REFERENCE && |
|
| 176 | 176 | $kind != ResourcePropertyKind::RESOURCESET_REFERENCE && |
| 177 | 177 | $kind != ResourcePropertyKind::COMPLEX_TYPE && |
| 178 | 178 | ($kind != (ResourcePropertyKind::COMPLEX_TYPE | ResourcePropertyKind::BAG)) && |
@@ -194,9 +194,9 @@ |
||
| 194 | 194 | * @throws \InvalidArgumentException |
| 195 | 195 | */ |
| 196 | 196 | public function __construct( |
| 197 | - $instanceType, |
|
| 198 | - $resourceTypeKind, |
|
| 199 | - $name, |
|
| 197 | + $instanceType, |
|
| 198 | + $resourceTypeKind, |
|
| 199 | + $name, |
|
| 200 | 200 | $namespaceName = null, |
| 201 | 201 | ResourceType $baseType = null, |
| 202 | 202 | $isAbstract = false |
@@ -445,8 +445,8 @@ |
||
| 445 | 445 | * @return void |
| 446 | 446 | */ |
| 447 | 447 | private function _addReferencePropertyInternal( |
| 448 | - ResourceType $resourceType, |
|
| 449 | - $name, |
|
| 448 | + ResourceType $resourceType, |
|
| 449 | + $name, |
|
| 450 | 450 | ResourceSet $targetResourceSet, |
| 451 | 451 | $resourcePropertyKind |
| 452 | 452 | ) { |