static function fromArray($array) {

		$data = new EETData();

		foreach (self::$keyNames as $key) {
			if (array_key_exists($key, $array)) {
				$data->$key = $array[$key];
			}
		}

		$data->rawData = $array;

		return $data;

	}
static function fromArray($array) {

		$data = new EETData();

		foreach (self::$keyNames as $key) {
			if (array_key_exists($key, $array)) {
				$data->$key = $array[$key];
			}
		}

		$data->rawData = $array;

		return $data;

	}
static function fromArray ( $ array ) { $ data = new EETData ( ) ; foreach ( self :: $ keyNames as $ key ) { if ( array_key_exists ( $ key , $ array ) ) { $ data -> $ key = $ array [ $ key ] ; } } $ data -> rawData = $ array ; return $ data ; }
Creates EETData object from array received from API

@param $array

@return EETData
Creates EETData object from array received from API