plugin/exo/Serializer/ExerciseSerializer.php
private function serializeSteps(Exercise $exercise, array $options = [])
    {
        return array_map(function (Step $step) use ($options) {
            return $this->stepSerializer->serialize($step, $options);
        }, $exercise->getSteps()->toArray());
    }
private function serializeSteps(Exercise $exercise, array $options = [])
    {
        return array_map(function (Step $step) use ($options) {
            return $this->stepSerializer->serialize($step, $options);
        }, $exercise->getSteps()->toArray());
    }
private function serializeSteps ( Exercise $ exercise , array $ options = [ ] ) { return array_map ( function ( Step $ step ) use ( $ options ) { return $ this -> stepSerializer -> serialize ( $ step , $ options ) ; } , $ exercise -> getSteps ( ) -> toArray ( ) ) ; }
Serializes Exercise steps.
Forwards the step serialization to StepSerializer.

@param Exercise $exercise
@param array    $options

@return array
Serializes Exercise steps . Forwards the step serialization to StepSerializer .