private function getDataType($data)
  {
    if (is_array($data)) {
      reset($data);
      if (key($data) !== 0) {
        return self::TYPE_MAP;
      }
      return self::TYPE_LIST;
    }
    return self::TYPE_SCALAR;
  }
private function getDataType($data)
  {
    if (is_array($data)) {
      reset($data);
      if (key($data) !== 0) {
        return self::TYPE_MAP;
      }
      return self::TYPE_LIST;
    }
    return self::TYPE_SCALAR;
  }
private function getDataType ( $ data ) { if ( is_array ( $ data ) ) { reset ( $ data ) ; if ( key ( $ data ) !== 0 ) { return self :: TYPE_MAP ; } return self :: TYPE_LIST ; } return self :: TYPE_SCALAR ; }
Return the type of a passed in value
Return the type of a passed in value