plugin/exo/Serializer/Item/ItemSerializer.php
private function serializeQuestionType(Item $question, array $options = [])
    {
        $type = $this->itemDefinitions->getConvertedType($question->getMimeType());
        $definition = $this->itemDefinitions->get($type);

        return $definition->serializeQuestion($question->getInteraction(), $options);
    }
private function serializeQuestionType(Item $question, array $options = [])
    {
        $type = $this->itemDefinitions->getConvertedType($question->getMimeType());
        $definition = $this->itemDefinitions->get($type);

        return $definition->serializeQuestion($question->getInteraction(), $options);
    }
private function serializeQuestionType ( Item $ question , array $ options = [ ] ) { $ type = $ this -> itemDefinitions -> getConvertedType ( $ question -> getMimeType ( ) ) ; $ definition = $ this -> itemDefinitions -> get ( $ type ) ; return $ definition -> serializeQuestion ( $ question -> getInteraction ( ) , $ options ) ; }
Serializes Item data specific to its type.
Forwards the serialization to the correct handler.

@param Item  $question
@param array $options

@return array
Serializes Item data specific to its type . Forwards the serialization to the correct handler .