Completed
Push — sync/dereksmart/D16735-code-15... ( bf7859 )
by
unknown
09:22
created

WPCOM_Jetpack_Mapper_Passthrough   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A map_request_to_jetpack() 0 3 1
A map_response_data_to_wpcom() 0 3 1
1
<?php
2
3
require_once dirname( __FILE__ ) . '/class.wpcom-jetpack-mapper-base.php';
4
5
/**
6
 * WP.com <-> Jetpack endpoint mapping logic for endpoints that do not require
7
 * any special handling.  This is intended for use with endpoints that also
8
 * ship with Jetpack.
9
 */
10
class WPCOM_Jetpack_Mapper_Passthrough extends WPCOM_Jetpack_Mapper_Base {
11
	/** This method is documented in class.wpcom-jetpack-mapper-base.php */
12
	public function map_request_to_jetpack( $request ) {
13
		return $request;
14
	}
15
16
	/** This method is documented in class.wpcom-jetpack-mapper-base.php */
17
	public function map_response_data_to_wpcom( $data, $request ) {
18
		return $data;
19
	}
20
}
21