original_string: protected function appendReceivedTransformations(Transformer $transformer, $received)
      {
          if (!empty($received)) {
              $template = new Template('__');
              foreach ($received as $transformation) {
                  $template[] = $transformation;
              }
              $transformer->getTemplates()->append($template);
          }
      }
code: protected function appendReceivedTransformations(Transformer $transformer, $received)
      {
          if (!empty($received)) {
              $template = new Template('__');
              foreach ($received as $transformation) {
                  $template[] = $transformation;
              }
              $transformer->getTemplates()->append($template);
          }
      }
code_tokens: protected function appendReceivedTransformations ( Transformer $ transformer , $ received ) { if ( ! empty ( $ received ) ) { $ template = new Template ( '__' ) ; foreach ( $ received as $ transformation ) { $ template [ ] = $ transformation ; } $ transformer -> getTemplates ( ) -> append ( $ template ) ; } }
docstring: Append received transformations.
  
  @param Transformer $transformer
  @param array       $received
  
  @return void
docstring_tokens: Append received transformations .