|
@@ 236-244 (lines=9) @@
|
| 233 |
|
* @return GatewayDataFormatterInterface |
| 234 |
|
* @throws InvalidEntityException if it's not set properly |
| 235 |
|
*/ |
| 236 |
|
protected function _get_gateway_formatter(){ |
| 237 |
|
if( ! $this->_gateway_data_formatter instanceof GatewayDataFormatterInterface){ |
| 238 |
|
throw new InvalidEntityException( |
| 239 |
|
is_object($this->_gateway_data_formatter) |
| 240 |
|
? get_class($this->_gateway_data_formatter) |
| 241 |
|
: esc_html__('Not an object','event_espresso'), |
| 242 |
|
'\\EventEspresso\\core\\services\\payment_methods\\gateways\\GatewayDataFormatterInterface' |
| 243 |
|
); |
| 244 |
|
} |
| 245 |
|
return $this->_gateway_data_formatter; |
| 246 |
|
} |
| 247 |
|
|
|
@@ 272-280 (lines=9) @@
|
| 269 |
|
* @return FormatterInterface |
| 270 |
|
* @throws InvalidEntityException |
| 271 |
|
*/ |
| 272 |
|
protected function _get_unsupported_character_remover(){ |
| 273 |
|
if( ! $this->_unsupported_character_remover instanceof FormatterInterface){ |
| 274 |
|
throw new InvalidEntityException( |
| 275 |
|
is_object($this->_unsupported_character_remover) |
| 276 |
|
? get_class($this->_unsupported_character_remover) |
| 277 |
|
: esc_html__('Not an object','event_espresso'), |
| 278 |
|
'\\EventEspresso\\core\\services\\formatters\\FormatterInterface' |
| 279 |
|
); |
| 280 |
|
} |
| 281 |
|
return $this->_unsupported_character_remover; |
| 282 |
|
} |
| 283 |
|
|