Httpful::head()   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 3
dl 0
loc 4
rs 10
1
<?php namespace Algorit\Synchronizer\Request\Methods;
2
3
use Httpfull\Request as Method;
4
5
class Httpful implements MethodInterface {
6
	
7
	public function head($url, $headers = array(), $options = array())
8
	{
9
		return Method::head($url, $options)->addHeaders($headers)->send();
10
	}
11
12
	public function get($url, $headers = array(), $options = array())
13
	{
14
		return Method::get($url, $options)->addHeaders($headers)->send();
15
	}
16
17
	public function post($url, $headers = array(), $data = array(), $options = array())
18
	{
19
		return Method::post($url, $data, $options)->addHeaders($headers)->send();
20
	}
21
22
	public function put($url, $headers = array(), $data = array(), $options = array())
23
	{
24
		return Method::put($url, $data, $options)->addHeaders($headers)->send();
25
	}
26
27
	public function delete($url, $headers = array(), $options = array())
28
	{
29
		return Method::delete($url, $options)->addHeaders($headers)->send();
30
	}
31
32
	public function patch($url, $headers = array(), $options = array())
33
	{
34
		return Method::patch($url, $options)->addHeaders($headers)->send();
35
	}
36
	
37
}