original_string: public static function morphMap(array $map = null, $merge = true)
      {
          $map = static::buildMorphMapFromModels($map);
  
          if (is_array($map)) {
              static::$morphMap = $merge && static::$morphMap
                              ? $map + static::$morphMap : $map;
          }
  
          return static::$morphMap;
      }
code: public static function morphMap(array $map = null, $merge = true)
      {
          $map = static::buildMorphMapFromModels($map);
  
          if (is_array($map)) {
              static::$morphMap = $merge && static::$morphMap
                              ? $map + static::$morphMap : $map;
          }
  
          return static::$morphMap;
      }
code_tokens: public static function morphMap ( array $ map = null , $ merge = true ) { $ map = static :: buildMorphMapFromModels ( $ map ) ; if ( is_array ( $ map ) ) { static :: $ morphMap = $ merge && static :: $ morphMap ? $ map + static :: $ morphMap : $ map ; } return static :: $ morphMap ; }
docstring: Set or get the morph map for polymorphic relations.
  
  @param  array|null  $map
  @param  bool  $merge
  @return array
docstring_tokens: Set or get the morph map for polymorphic relations .