plugin/exo/Serializer/Item/Type/OrderingQuestionSerializer.php
private function serializeItems(OrderingQuestion $question, array $options = [])
    {
        return array_map(function (OrderingItem $item) use ($options) {
            $itemData = $this->contentSerializer->serialize($item, $options);
            $itemData['id'] = $item->getUuid();

            return $itemData;
        }, $question->getItems()->toArray());
    }
private function serializeItems(OrderingQuestion $question, array $options = [])
    {
        return array_map(function (OrderingItem $item) use ($options) {
            $itemData = $this->contentSerializer->serialize($item, $options);
            $itemData['id'] = $item->getUuid();

            return $itemData;
        }, $question->getItems()->toArray());
    }
private function serializeItems ( OrderingQuestion $ question , array $ options = [ ] ) { return array_map ( function ( OrderingItem $ item ) use ( $ options ) { $ itemData = $ this -> contentSerializer -> serialize ( $ item , $ options ) ; $ itemData [ 'id' ] = $ item -> getUuid ( ) ; return $ itemData ; } , $ question -> getItems ( ) -> toArray ( ) ) ; }
Serializes the question items.

@param OrderingQuestion $question
@param array            $options

@return array
Serializes the question items .