original_string: public function toMappedArray(array $array)
      {
          $mappedArray = [];
          foreach ($this->getMapper() as $from => $to) {
              $mappedArray[$to] = $array[$from];
          }
          return $mappedArray;
      }
code: public function toMappedArray(array $array)
      {
          $mappedArray = [];
          foreach ($this->getMapper() as $from => $to) {
              $mappedArray[$to] = $array[$from];
          }
          return $mappedArray;
      }
code_tokens: public function toMappedArray ( array $ array ) { $ mappedArray = [ ] ; foreach ( $ this -> getMapper ( ) as $ from => $ to ) { $ mappedArray [ $ to ] = $ array [ $ from ] ; } return $ mappedArray ; }
docstring: Attempts to use stored mapper array to map fields from the current model's properties to what is set in the
  array.
  
  @param array $array
  
  @return array
docstring_tokens: Attempts to use stored mapper array to map fields from the current model s properties to what is set in the array .