original_string: public function buildMarshalMap($marshaller, $map, $options)
      {
          $bundle = !empty($options['bundle']) ? $options['bundle'] : null;
          $attrs = $this->_toolbox->attributes($bundle);
          $map = [];
  
          foreach ($attrs as $name => $info) {
              $map[$name] = function ($value, $entity) use ($info) {
                  return $this->_toolbox->marshal($value, $info['type']);
              };
          }
  
          return $map;
      }
code: public function buildMarshalMap($marshaller, $map, $options)
      {
          $bundle = !empty($options['bundle']) ? $options['bundle'] : null;
          $attrs = $this->_toolbox->attributes($bundle);
          $map = [];
  
          foreach ($attrs as $name => $info) {
              $map[$name] = function ($value, $entity) use ($info) {
                  return $this->_toolbox->marshal($value, $info['type']);
              };
          }
  
          return $map;
      }
code_tokens: public function buildMarshalMap ( $ marshaller , $ map , $ options ) { $ bundle = ! empty ( $ options [ 'bundle' ] ) ? $ options [ 'bundle' ] : null ; $ attrs = $ this -> _toolbox -> attributes ( $ bundle ) ; $ map = [ ] ; foreach ( $ attrs as $ name => $ info ) { $ map [ $ name ] = function ( $ value , $ entity ) use ( $ info ) { return $ this -> _toolbox -> marshal ( $ value , $ info [ 'type' ] ) ; } ; } return $ map ; }
docstring: Ensures that virtual properties are included in the marshalling process.
  
  @param \Cake\ORM\Marhshaller $marshaller The marhshaller of the table the behavior is attached to.
  @param array $map The property map being built.
  @param array $options The options array used in the marshalling call.
  @return array A map of `[property => callable]` of additional properties to marshal.
docstring_tokens: Ensures that virtual properties are included in the marshalling process .