@@ -89,7 +89,7 @@ |
||
| 89 | 89 | * |
| 90 | 90 | * @see library/POData/QueryProcessorOrderByParser.OrderByBaseNode::getResourceType() |
| 91 | 91 | * |
| 92 | - * @return ResourceType |
|
| 92 | + * @return \POData\Providers\Metadata\ResourceType |
|
| 93 | 93 | */ |
| 94 | 94 | public function getResourceType() |
| 95 | 95 | { |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | * KeyDescription. |
| 203 | 203 | * |
| 204 | 204 | * @param string $keyPredicate The predicate to parse |
| 205 | - * @param KeyDescriptor &$keyDescriptor On return, Description of key after |
|
| 205 | + * @param KeyDescriptor KeyDescriptor On return, Description of key after |
|
| 206 | 206 | * parsing |
| 207 | 207 | * |
| 208 | 208 | * @return boolean True if the given values were parsed; false if there was |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | * the type if valid this function provide the PHP value equivalent to |
| 455 | 455 | * the astoira URI key value |
| 456 | 456 | * |
| 457 | - * @param unknown $value The Astoria URI key value |
|
| 457 | + * @param string $value The Astoria URI key value |
|
| 458 | 458 | * @param ExpressionTokenId $tokenId The tokenId for $value literal |
| 459 | 459 | * @param unknown &$outValue After the invocation, this parameter |
| 460 | 460 | * holds the PHP value equivalent to $value, |
@@ -142,6 +142,10 @@ |
||
| 142 | 142 | } |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | + /** |
|
| 146 | + * @param string $segment |
|
| 147 | + * @param boolean $checkRights |
|
| 148 | + */ |
|
| 145 | 149 | private function createNextSegment(SegmentDescriptor $previous, $segment, $checkRights){ |
| 146 | 150 | $previousKind = $previous->getTargetKind(); |
| 147 | 151 | if ($previousKind == TargetKind::METADATA() |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | - * @param ODataUrl $url the url to write. |
|
| 105 | + * @param ODataURL $url the url to write. |
|
| 106 | 106 | * |
| 107 | 107 | * @return AtomODataWriter |
| 108 | 108 | */ |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | /** |
| 120 | 120 | * Begin write odata links |
| 121 | 121 | * |
| 122 | - * @param ODataUrlCollection $urls Object of ODataUrlCollection to start writing collection of url. |
|
| 122 | + * @param ODataURLCollection $urls Object of ODataUrlCollection to start writing collection of url. |
|
| 123 | 123 | * |
| 124 | 124 | * |
| 125 | 125 | * @return AtomODataWriter |
@@ -415,10 +415,10 @@ discard block |
||
| 415 | 415 | /** |
| 416 | 416 | * XML write a basic data type (string, number, boolean, null) |
| 417 | 417 | * |
| 418 | - * @param mixed $value value to be written |
|
| 418 | + * @param string $value value to be written |
|
| 419 | 419 | * @param string $type data type of the value |
| 420 | 420 | * |
| 421 | - * @return mixed |
|
| 421 | + * @return string |
|
| 422 | 422 | */ |
| 423 | 423 | protected function beforeWriteValue($value, $type = null) |
| 424 | 424 | { |
@@ -43,6 +43,9 @@ discard block |
||
| 43 | 43 | protected $baseUri; |
| 44 | 44 | |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $absoluteServiceUri |
|
| 48 | + */ |
|
| 46 | 49 | public function __construct(JsonLightMetadataLevel $metadataLevel, $absoluteServiceUri) |
| 47 | 50 | { |
| 48 | 51 | if(strlen($absoluteServiceUri) == 0) |
@@ -148,6 +151,9 @@ discard block |
||
| 148 | 151 | |
| 149 | 152 | |
| 150 | 153 | |
| 154 | + /** |
|
| 155 | + * @param string $fragment |
|
| 156 | + */ |
|
| 151 | 157 | protected function writeTopLevelMeta($fragment) |
| 152 | 158 | { |
| 153 | 159 | if($this->metadataLevel == JsonLightMetadataLevel::NONE()) |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | /** |
| 165 | 165 | * Gets collection of association set |
| 166 | 166 | * |
| 167 | - * @return ResourceAssociationSet[] |
|
| 167 | + * @return \POData\Providers\Metadata\ResourceAssociationSet[] |
|
| 168 | 168 | */ |
| 169 | 169 | public function getAssociationSets() |
| 170 | 170 | { |
@@ -213,6 +213,7 @@ discard block |
||
| 213 | 213 | * data service version for the metadata |
| 214 | 214 | * @param string &$edmSchemaVersion On return, this parmater will contain |
| 215 | 215 | * edm schema version for the metadata |
| 216 | + * @param EdmSchemaVersion $edmSchemaVersion |
|
| 216 | 217 | * |
| 217 | 218 | * @return void |
| 218 | 219 | */ |
@@ -185,7 +185,7 @@ |
||
| 185 | 185 | * |
| 186 | 186 | * @param ResourceType[] $resourceTypes resource types array |
| 187 | 187 | |
| 188 | - * @param array $associationTypesInResourceTypesNamespace collection of |
|
| 188 | + * @param ResourceAssociationType[] $associationTypesInResourceTypesNamespace collection of |
|
| 189 | 189 | * association types for the given resource types |
| 190 | 190 | * array(string, AssociationType) |
| 191 | 191 | * |
@@ -172,7 +172,7 @@ |
||
| 172 | 172 | * |
| 173 | 173 | * @throws InvalidOperationException |
| 174 | 174 | * |
| 175 | - * @return NorthWindMetadata |
|
| 175 | + * @return SimpleMetadataProvider |
|
| 176 | 176 | */ |
| 177 | 177 | public static function create() |
| 178 | 178 | { |
@@ -605,6 +605,10 @@ |
||
| 605 | 605 | } |
| 606 | 606 | |
| 607 | 607 | |
| 608 | + /** |
|
| 609 | + * @param QueryResult $queryResult |
|
| 610 | + * @param string $methodName |
|
| 611 | + */ |
|
| 608 | 612 | private function ValidateQueryResult($queryResult, QueryType $queryType, $methodName){ |
| 609 | 613 | if (!$queryResult instanceof QueryResult) { |
| 610 | 614 | throw ODataException::createInternalServerError( |