public static function getMappings($resource, $key = 'default')
	{
		$resourceName = $resource;

		if( is_object($resource) )
		{
			$resourceName = get_class($resource);
		}

		$mappings = [];
		if( isset(self::$mappers[$key]) )
		{
			$mappings = array_merge_recursive( $mappings, call_user_func(self::$mappers[$key], $resourceName) );
		}

		if( isset(self::$mappings[$key]) && isset(self::$mappings[$key][$resourceName]) )
		{
			$mappings = array_merge_recursive( $mappings, (array) self::$mappings[$key][$resourceName] );
		}

		return $mappings;
	}
public static function getMappings($resource, $key = 'default')
	{
		$resourceName = $resource;

		if( is_object($resource) )
		{
			$resourceName = get_class($resource);
		}

		$mappings = [];
		if( isset(self::$mappers[$key]) )
		{
			$mappings = array_merge_recursive( $mappings, call_user_func(self::$mappers[$key], $resourceName) );
		}

		if( isset(self::$mappings[$key]) && isset(self::$mappings[$key][$resourceName]) )
		{
			$mappings = array_merge_recursive( $mappings, (array) self::$mappings[$key][$resourceName] );
		}

		return $mappings;
	}
public static function getMappings ( $ resource , $ key = 'default' ) { $ resourceName = $ resource ; if ( is_object ( $ resource ) ) { $ resourceName = get_class ( $ resource ) ; } $ mappings = [ ] ; if ( isset ( self :: $ mappers [ $ key ] ) ) { $ mappings = array_merge_recursive ( $ mappings , call_user_func ( self :: $ mappers [ $ key ] , $ resourceName ) ) ; } if ( isset ( self :: $ mappings [ $ key ] ) && isset ( self :: $ mappings [ $ key ] [ $ resourceName ] ) ) { $ mappings = array_merge_recursive ( $ mappings , ( array ) self :: $ mappings [ $ key ] [ $ resourceName ] ) ; } return $ mappings ; }
Get mappings for the resource.

@param  mixed  $command
@return string
Get mappings for the resource .