| @@ 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 | ||
| @@ 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 |
|
| @@ 394-405 (lines=12) @@ | ||
| 391 | * @return TableAnalysis |
|
| 392 | * @throws EE_Error |
|
| 393 | */ |
|
| 394 | protected function _get_table_analysis() |
|
| 395 | { |
|
| 396 | if ($this->_table_analysis instanceof TableAnalysis) { |
|
| 397 | return $this->_table_analysis; |
|
| 398 | } |
|
| 399 | throw new EE_Error( |
|
| 400 | sprintf( |
|
| 401 | esc_html__('Table analysis class on class %1$s is not set properly.', 'event_espresso'), |
|
| 402 | get_class($this) |
|
| 403 | ) |
|
| 404 | ); |
|
| 405 | } |
|
| 406 | ||
| 407 | ||
| 408 | /** |
|
| @@ 1063-1074 (lines=12) @@ | ||
| 1060 | * @return TableAnalysis |
|
| 1061 | * @throws EE_Error |
|
| 1062 | */ |
|
| 1063 | protected function _get_table_analysis() { |
|
| 1064 | if( $this->_table_analysis instanceof TableAnalysis ) { |
|
| 1065 | return $this->_table_analysis; |
|
| 1066 | } else { |
|
| 1067 | throw new EE_Error( |
|
| 1068 | sprintf( |
|
| 1069 | __( 'Table analysis class on class %1$s is not set properly.', 'event_espresso'), |
|
| 1070 | get_class( $this ) |
|
| 1071 | ) |
|
| 1072 | ); |
|
| 1073 | } |
|
| 1074 | } |
|
| 1075 | ||
| 1076 | /** |
|
| 1077 | * Gets the injected table manager, or throws an exception |
|
| @@ 1082-1093 (lines=12) @@ | ||
| 1079 | * @return TableManager |
|
| 1080 | * @throws EE_Error |
|
| 1081 | */ |
|
| 1082 | protected function _get_table_manager() { |
|
| 1083 | if( $this->_table_manager instanceof TableManager ) { |
|
| 1084 | return $this->_table_manager; |
|
| 1085 | } else { |
|
| 1086 | throw new EE_Error( |
|
| 1087 | sprintf( |
|
| 1088 | __( 'Table manager class on class %1$s is not set properly.', 'event_espresso'), |
|
| 1089 | get_class( $this ) |
|
| 1090 | ) |
|
| 1091 | ); |
|
| 1092 | } |
|
| 1093 | } |
|
| 1094 | } |
|
| 1095 | ||
| @@ 300-312 (lines=13) @@ | ||
| 297 | * @return TableAnalysis |
|
| 298 | * @throws \EE_Error |
|
| 299 | */ |
|
| 300 | protected function _get_table_analysis() |
|
| 301 | { |
|
| 302 | if ($this->_table_analysis instanceof TableAnalysis) { |
|
| 303 | return $this->_table_analysis; |
|
| 304 | } else { |
|
| 305 | throw new \EE_Error( |
|
| 306 | sprintf( |
|
| 307 | __('Table analysis class on class %1$s is not set properly.', 'event_espresso'), |
|
| 308 | get_class($this) |
|
| 309 | ) |
|
| 310 | ); |
|
| 311 | } |
|
| 312 | } |
|
| 313 | } |
|
| 314 | ||
| 315 | ||
| @@ 39-51 (lines=13) @@ | ||
| 36 | * @return TableAnalysis |
|
| 37 | * @throws \EE_Error |
|
| 38 | */ |
|
| 39 | protected function getTableAnalysis() |
|
| 40 | { |
|
| 41 | if ($this->table_analysis instanceof TableAnalysis) { |
|
| 42 | return $this->table_analysis; |
|
| 43 | } else { |
|
| 44 | throw new \EE_Error( |
|
| 45 | sprintf( |
|
| 46 | __('Table analysis class on class %1$s is not set properly.', 'event_espresso'), |
|
| 47 | get_class($this) |
|
| 48 | ) |
|
| 49 | ); |
|
| 50 | } |
|
| 51 | } |
|
| 52 | ||
| 53 | ||
| 54 | /** |
|