original_string: protected function map($mapping, \SimpleXMLElement $xml, $objekt)
      {
          foreach ($mapping as $key) {
              if (isset($xml->$key)) {
                  $setter = $this->mapper->getSetter($key);
                  $objekt->$setter($this->cast($xml->$key, $this->mapper->getType($key)));
              }
          }
      }
code: protected function map($mapping, \SimpleXMLElement $xml, $objekt)
      {
          foreach ($mapping as $key) {
              if (isset($xml->$key)) {
                  $setter = $this->mapper->getSetter($key);
                  $objekt->$setter($this->cast($xml->$key, $this->mapper->getType($key)));
              }
          }
      }
code_tokens: protected function map ( $ mapping , \ SimpleXMLElement $ xml , $ objekt ) { foreach ( $ mapping as $ key ) { if ( isset ( $ xml -> $ key ) ) { $ setter = $ this -> mapper -> getSetter ( $ key ) ; $ objekt -> $ setter ( $ this -> cast ( $ xml -> $ key , $ this -> mapper -> getType ( $ key ) ) ) ; } } }
docstring: maps an mapping array between a SimpleXML and Objekt
  
  @param                   $mapping
  @param \SimpleXMLElement $xml
  @param                   $objekt
docstring_tokens: maps an mapping array between a SimpleXML and Objekt