public function setData($data)
	{
		if ($data && !static::$methods[$this->method]) {
			throw new \InvalidArgumentException("HTTP method [$this->method] does not allow POST data.");
		}

		$this->data = $data;

		return $this;
	}
public function setData($data)
	{
		if ($data && !static::$methods[$this->method]) {
			throw new \InvalidArgumentException("HTTP method [$this->method] does not allow POST data.");
		}

		$this->data = $data;

		return $this;
	}
public function setData ( $ data ) { if ( $ data && ! static :: $ methods [ $ this -> method ] ) { throw new \ InvalidArgumentException ( "HTTP method [$this->method] does not allow POST data." ) ; } $ this -> data = $ data ; return $ this ; }
Set the POST data to be sent with the request.

@param mixed $data
Set the POST data to be sent with the request .