return $this->
fmap(fn (OrderDeliveryPositionEntity
$orderDeliveryPosition) =>
$orderDeliveryPosition->
getOrderLineItemId());
} public function filterByOrderLineItemId(string
$id): self
{ return $this->
filter(fn (OrderDeliveryPositionEntity
$orderDeliveryPosition) =>
$orderDeliveryPosition->
getOrderLineItemId() ===
$id);
} public function getOrderLineItems(): OrderLineItemCollection
{ return new OrderLineItemCollection( $this->
fmap(fn (OrderDeliveryPositionEntity
$orderDeliveryPosition) =>
$orderDeliveryPosition->
getOrderLineItem()) );
} public function getApiAlias(): string
{ return 'order_delivery_position_collection';
} protected function getExpectedClass(): string
{ return OrderDeliveryPositionEntity::
class;
}