original_string: protected function exportRecord(AbstractRecord $record, DataDimensions $dataDimensions)
      {
          $precalculate      = $this->precalculateExportRecord($record, $dataDimensions);
          $allowedProperties = array_intersect_key($record->getProperties(), $precalculate['allowedProperties']);
          $record            = clone $record;
          $record->setProperties($allowedProperties);
  
          return $record;
      }
code: protected function exportRecord(AbstractRecord $record, DataDimensions $dataDimensions)
      {
          $precalculate      = $this->precalculateExportRecord($record, $dataDimensions);
          $allowedProperties = array_intersect_key($record->getProperties(), $precalculate['allowedProperties']);
          $record            = clone $record;
          $record->setProperties($allowedProperties);
  
          return $record;
      }
code_tokens: protected function exportRecord ( AbstractRecord $ record , DataDimensions $ dataDimensions ) { $ precalculate = $ this -> precalculateExportRecord ( $ record , $ dataDimensions ) ; $ allowedProperties = array_intersect_key ( $ record -> getProperties ( ) , $ precalculate [ 'allowedProperties' ] ) ; $ record = clone $ record ; $ record -> setProperties ( $ allowedProperties ) ; return $ record ; }
docstring: Make sure the returned record is a new instance an does only contain properties of it's
  current view
  
  @param AbstractRecord $record - multi view record !
docstring_tokens: Make sure the returned record is a new instance an does only contain properties of it s current view