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

map_request_to_jetpack()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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