: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* value of {@link self::data}.
abstract public function set_account_name( $name );
* Transforms an array from our data format to that of the service provider.
* @param array $data The data to be transformed.
* @param string $key_type The type of data. This corresponds to the key_type in {@link self::data_keys}.
* @param array $exclude_keys Keys that should be excluded from the transformed data.
public function transform_data_to_our_format( $data = array(), $key_type, $exclude_keys = array() ) {
if ( ! isset( $this->data_keys[ $key_type ] ) ) {
return self::$_->array_transform( $data, $this->data_keys[ $key_type ], '<-', $exclude_keys );
* Transforms an array from the service provider's data format to our data format.
* @param array $data The data to be transformed.
* @param string $key_type The type of data. This corresponds to the key_type in {@link self::data_keys}.
* @param array $exclude_keys Keys that should be excluded from the transformed data.
public function transform_data_to_provider_format( $data = array(), $key_type, $exclude_keys = array() ) {
if ( ! isset( $this->data_keys[ $key_type ] ) ) {
return self::$_->array_transform( $data, $this->data_keys[ $key_type ], '->', $exclude_keys );