| @@ 311-322 (lines=12) @@ | ||
| 308 | * @return TableManager | |
| 309 | * @throws EE_Error | |
| 310 | */ | |
| 311 | 	protected function _get_table_manager() { | |
| 312 | 		if( $this->_table_manager instanceof TableManager ) { | |
| 313 | return $this->_table_manager; | |
| 314 | 		} else { | |
| 315 | throw new EE_Error( | |
| 316 | sprintf( | |
| 317 | __( 'Table manager on migration class %1$s is not set properly.', 'event_espresso'), | |
| 318 | get_class( $this ) | |
| 319 | ) | |
| 320 | ); | |
| 321 | } | |
| 322 | } | |
| 323 | ||
| 324 | /** | |
| 325 | * Gets the injected table analyzer, or throws an exception | |
| @@ 329-340 (lines=12) @@ | ||
| 326 | * @return TableAnalysis | |
| 327 | * @throws EE_Error | |
| 328 | */ | |
| 329 | 	protected function _get_table_analysis() { | |
| 330 | 		if( $this->_table_analysis instanceof TableAnalysis ) { | |
| 331 | return $this->_table_analysis; | |
| 332 | 		} else { | |
| 333 | throw new EE_Error( | |
| 334 | sprintf( | |
| 335 | __( 'Table analysis class on migration class %1$s is not set properly.', 'event_espresso'), | |
| 336 | get_class( $this ) | |
| 337 | ) | |
| 338 | ); | |
| 339 | } | |
| 340 | } | |
| 341 | } | |
| 342 | // end of file: /core/EE_Data_Migration_Class_Base.core.php | |
| @@ 107-118 (lines=12) @@ | ||
| 104 | * @return TableAnalysis | |
| 105 | * @throws \EE_Error | |
| 106 | */ | |
| 107 | 	protected function _get_table_analysis() { | |
| 108 | 		if( $this->_table_analysis instanceof TableAnalysis ) { | |
| 109 | return $this->_table_analysis; | |
| 110 | 		} else { | |
| 111 | throw new \EE_Error( | |
| 112 | sprintf( | |
| 113 | __( 'Table analysis class on class %1$s is not set properly.', 'event_espresso'), | |
| 114 | get_class( $this ) | |
| 115 | ) | |
| 116 | ); | |
| 117 | } | |
| 118 | } | |
| 119 | ||
| 120 | ||
| 121 | ||
| @@ 45-56 (lines=12) @@ | ||
| 42 | * @return TableAnalysis | |
| 43 | * @throws \EE_Error | |
| 44 | */ | |
| 45 | protected function getTableAnalysis() | |
| 46 |     { | |
| 47 |         if ($this->table_analysis instanceof TableAnalysis) { | |
| 48 | return $this->table_analysis; | |
| 49 |         } else { | |
| 50 | throw new \EE_Error( | |
| 51 | sprintf( | |
| 52 |                     __('Table analysis class on class %1$s is not set properly.', 'event_espresso'), | |
| 53 | get_class($this) | |
| 54 | ) | |
| 55 | ); | |
| 56 | } | |
| 57 | } | |
| 58 | ||
| 59 | ||
| @@ 284-295 (lines=12) @@ | ||
| 281 | * @return TableAnalysis | |
| 282 | * @throws \EE_Error | |
| 283 | */ | |
| 284 | protected function _get_table_analysis() | |
| 285 |     { | |
| 286 |         if ($this->_table_analysis instanceof TableAnalysis) { | |
| 287 | return $this->_table_analysis; | |
| 288 |         } else { | |
| 289 | throw new \EE_Error( | |
| 290 | sprintf( | |
| 291 |                     __('Table analysis class on class %1$s is not set properly.', 'event_espresso'), | |
| 292 | get_class($this) | |
| 293 | ) | |
| 294 | ); | |
| 295 | } | |
| 296 | } | |
| 297 | } | |
| 298 | ||
| @@ 1040-1051 (lines=12) @@ | ||
| 1037 | * @return TableAnalysis | |
| 1038 | * @throws \EE_Error | |
| 1039 | */ | |
| 1040 | 	protected function _get_table_analysis() { | |
| 1041 | 		if( $this->_table_analysis instanceof TableAnalysis ) { | |
| 1042 | return $this->_table_analysis; | |
| 1043 | 		} else { | |
| 1044 | throw new \EE_Error( | |
| 1045 | sprintf( | |
| 1046 | __( 'Table analysis class on class %1$s is not set properly.', 'event_espresso'), | |
| 1047 | get_class( $this ) | |
| 1048 | ) | |
| 1049 | ); | |
| 1050 | } | |
| 1051 | } | |
| 1052 | ||
| 1053 | /** | |
| 1054 | * Gets the injected table manager, or throws an exception | |
| @@ 1058-1069 (lines=12) @@ | ||
| 1055 | * @return TableManager | |
| 1056 | * @throws \EE_Error | |
| 1057 | */ | |
| 1058 | 	protected function _get_table_manager() { | |
| 1059 | 		if( $this->_table_manager instanceof TableManager ) { | |
| 1060 | return $this->_table_manager; | |
| 1061 | 		} else { | |
| 1062 | throw new \EE_Error( | |
| 1063 | sprintf( | |
| 1064 | __( 'Table manager class on class %1$s is not set properly.', 'event_espresso'), | |
| 1065 | get_class( $this ) | |
| 1066 | ) | |
| 1067 | ); | |
| 1068 | } | |
| 1069 | } | |
| 1070 | } | |
| 1071 | ||
| @@ 351-362 (lines=12) @@ | ||
| 348 | * @return TableAnalysis | |
| 349 | * @throws \EE_Error | |
| 350 | */ | |
| 351 | protected function _get_table_analysis() | |
| 352 |     { | |
| 353 |         if ($this->_table_analysis instanceof TableAnalysis) { | |
| 354 | return $this->_table_analysis; | |
| 355 |         } else { | |
| 356 | throw new \EE_Error( | |
| 357 | sprintf( | |
| 358 |                     __('Table analysis class on class %1$s is not set properly.', 'event_espresso'), | |
| 359 | get_class($this) | |
| 360 | ) | |
| 361 | ); | |
| 362 | } | |
| 363 | } | |
| 364 | ||
| 365 | ||