Requests::post()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 4
dl 0
loc 4
rs 10
1
<?php namespace Algorit\Synchronizer\Request\Methods;
2
3
// https://github.com/rmccue/Requests
4
use Requests as Method;
5
6
class Requests implements MethodInterface {
7
8
	public function head($url, $headers = array(), $options = array())
9
	{
10
		return Method::head($url, $headers, $options);
11
	}
12
13
	public function get($url, $headers = array(), $options = array())
14
	{
15
		return Method::get($url, $headers, $options);
16
	}
17
18
	public function post($url, $headers = array(), $data = array(), $options = array())
19
	{
20
		return Method::post($url, $headers, $data, $options);
21
	}
22
23
	public function put($url, $headers = array(), $data = array(), $options = array())
24
	{
25
		return Method::put($url, $headers, $data, $options);
26
	}
27
28
	public function delete($url, $headers = array(), $options = array())
29
	{
30
		return Method::delete($url, $headers, $options);
31
	}
32
33
	public function patch($url, $headers = array(), $options = array())
34
	{
35
		return Method::patch($url, $headers, $options);
36
	}
37
	
38
}