|
@@ 337-341 (lines=5) @@
|
| 334 |
|
$descriptor = new SegmentDescriptor(); |
| 335 |
|
$descriptor->setIdentifier($segmentIdentifier); |
| 336 |
|
|
| 337 |
|
if ($segmentIdentifier === ODataConstants::URI_METADATA_SEGMENT) { |
| 338 |
|
$this->_assertion(is_null($keyPredicate)); |
| 339 |
|
$descriptor->setTargetKind(TargetKind::METADATA()); |
| 340 |
|
return $descriptor; |
| 341 |
|
} |
| 342 |
|
|
| 343 |
|
if ($segmentIdentifier === ODataConstants::URI_BATCH_SEGMENT) { |
| 344 |
|
$this->_assertion(is_null($keyPredicate)); |
|
@@ 343-347 (lines=5) @@
|
| 340 |
|
return $descriptor; |
| 341 |
|
} |
| 342 |
|
|
| 343 |
|
if ($segmentIdentifier === ODataConstants::URI_BATCH_SEGMENT) { |
| 344 |
|
$this->_assertion(is_null($keyPredicate)); |
| 345 |
|
$descriptor->setTargetKind(TargetKind::BATCH()); |
| 346 |
|
return $descriptor; |
| 347 |
|
} |
| 348 |
|
|
| 349 |
|
if ($segmentIdentifier === ODataConstants::URI_COUNT_SEGMENT) { |
| 350 |
|
throw ODataException::createBadRequestError( |