plugin/exo/Serializer/Item/Type/BooleanQuestionSerializer.php
private function serializeChoices(BooleanQuestion $question, array $options = [])
    {
        return array_map(function (BooleanChoice $choice) use ($options) {
            $choiceData = $this->contentSerializer->serialize($choice, $options);
            $choiceData['id'] = $choice->getUuid();

            return $choiceData;
        }, $question->getChoices()->toArray());
    }
private function serializeChoices(BooleanQuestion $question, array $options = [])
    {
        return array_map(function (BooleanChoice $choice) use ($options) {
            $choiceData = $this->contentSerializer->serialize($choice, $options);
            $choiceData['id'] = $choice->getUuid();

            return $choiceData;
        }, $question->getChoices()->toArray());
    }
private function serializeChoices ( BooleanQuestion $ question , array $ options = [ ] ) { return array_map ( function ( BooleanChoice $ choice ) use ( $ options ) { $ choiceData = $ this -> contentSerializer -> serialize ( $ choice , $ options ) ; $ choiceData [ 'id' ] = $ choice -> getUuid ( ) ; return $ choiceData ; } , $ question -> getChoices ( ) -> toArray ( ) ) ; }
Serializes the Question choices.

@param BooleanQuestion $question
@param array           $options

@return array
Serializes the Question choices .