src/POData/UriProcessor/RequestExpander.php 1 location
|
@@ 161-167 (lines=7) @@
|
| 158 |
|
* |
| 159 |
|
* @return ResourceSetWrapper |
| 160 |
|
*/ |
| 161 |
|
private function getCurrentResourceSetWrapper() |
| 162 |
|
{ |
| 163 |
|
$wraps = $this->getStack()->getSegmentWrappers(); |
| 164 |
|
$count = count($wraps); |
| 165 |
|
|
| 166 |
|
return 0 == $count ? $this->getRequest()->getTargetResourceSetWrapper() : $wraps[$count - 1]; |
| 167 |
|
} |
| 168 |
|
|
| 169 |
|
/** |
| 170 |
|
* Pushes a segment for the root of the tree |
src/POData/ObjectModel/ObjectModelSerializerBase.php 1 location
|
@@ 207-213 (lines=7) @@
|
| 204 |
|
* |
| 205 |
|
* @return ResourceSetWrapper |
| 206 |
|
*/ |
| 207 |
|
protected function getCurrentResourceSetWrapper() |
| 208 |
|
{ |
| 209 |
|
$segmentWrappers = $this->getStack()->getSegmentWrappers(); |
| 210 |
|
$count = count($segmentWrappers); |
| 211 |
|
|
| 212 |
|
return 0 == $count ? $this->getRequest()->getTargetResourceSetWrapper() : $segmentWrappers[$count - 1]; |
| 213 |
|
} |
| 214 |
|
|
| 215 |
|
/** |
| 216 |
|
* Whether the current resource set is root resource set. |