plugin/exo/Serializer/StepSerializer.php
public function serializeItems(Step $step, array $options = [])
    {
        return array_values(array_map(function (StepItem $stepQuestion) use ($options) {
            $serialized = $this->itemSerializer->serialize($stepQuestion->getQuestion(), $options);
            $serialized['meta']['mandatory'] = $stepQuestion->isMandatory();

            return $serialized;
        }, $step->getStepQuestions()->toArray()));
    }
public function serializeItems(Step $step, array $options = [])
    {
        return array_values(array_map(function (StepItem $stepQuestion) use ($options) {
            $serialized = $this->itemSerializer->serialize($stepQuestion->getQuestion(), $options);
            $serialized['meta']['mandatory'] = $stepQuestion->isMandatory();

            return $serialized;
        }, $step->getStepQuestions()->toArray()));
    }
public function serializeItems ( Step $ step , array $ options = [ ] ) { return array_values ( array_map ( function ( StepItem $ stepQuestion ) use ( $ options ) { $ serialized = $ this -> itemSerializer -> serialize ( $ stepQuestion -> getQuestion ( ) , $ options ) ; $ serialized [ 'meta' ] [ 'mandatory' ] = $ stepQuestion -> isMandatory ( ) ; return $ serialized ; } , $ step -> getStepQuestions ( ) -> toArray ( ) ) ) ; }
Serializes Step items.
Forwards the item serialization to ItemSerializer.

@param Step  $step
@param array $options

@return array
Serializes Step items . Forwards the item serialization to ItemSerializer .