plugin/exo/Serializer/StepSerializer.php
public function deserialize($data, Step $step = null, array $options = [])
    {
        $step = $step ?: new Step();

        $this->sipe('id', 'setUuid', $data, $step);
        $this->sipe('title', 'setTitle', $data, $step);
        $this->sipe('description', 'setDescription', $data, $step);

        if (in_array(Transfer::REFRESH_UUID, $options)) {
            $step->refreshUuid();
        }

        if (!empty($data['parameters'])) {
            $this->deserializeParameters($step, $data['parameters']);
        }

        if (!empty($data['picking'])) {
            $this->deserializePicking($step, $data['picking']);
        }

        if (!empty($data['items'])) {
            $this->deserializeItems($step, $data['items'], $options);
        }

        return $step;
    }
public function deserialize($data, Step $step = null, array $options = [])
    {
        $step = $step ?: new Step();

        $this->sipe('id', 'setUuid', $data, $step);
        $this->sipe('title', 'setTitle', $data, $step);
        $this->sipe('description', 'setDescription', $data, $step);

        if (in_array(Transfer::REFRESH_UUID, $options)) {
            $step->refreshUuid();
        }

        if (!empty($data['parameters'])) {
            $this->deserializeParameters($step, $data['parameters']);
        }

        if (!empty($data['picking'])) {
            $this->deserializePicking($step, $data['picking']);
        }

        if (!empty($data['items'])) {
            $this->deserializeItems($step, $data['items'], $options);
        }

        return $step;
    }
public function deserialize ( $ data , Step $ step = null , array $ options = [ ] ) { $ step = $ step ? : new Step ( ) ; $ this -> sipe ( 'id' , 'setUuid' , $ data , $ step ) ; $ this -> sipe ( 'title' , 'setTitle' , $ data , $ step ) ; $ this -> sipe ( 'description' , 'setDescription' , $ data , $ step ) ; if ( in_array ( Transfer :: REFRESH_UUID , $ options ) ) { $ step -> refreshUuid ( ) ; } if ( ! empty ( $ data [ 'parameters' ] ) ) { $ this -> deserializeParameters ( $ step , $ data [ 'parameters' ] ) ; } if ( ! empty ( $ data [ 'picking' ] ) ) { $ this -> deserializePicking ( $ step , $ data [ 'picking' ] ) ; } if ( ! empty ( $ data [ 'items' ] ) ) { $ this -> deserializeItems ( $ step , $ data [ 'items' ] , $ options ) ; } return $ step ; }
Converts raw data into a Step entity.

@param array $data
@param Step  $step
@param array $options

@return Step
Converts raw data into a Step entity .