private function createOptions() {

		$default = [

			CURLOPT_RETURNTRANSFER 	=> true,
			CURLOPT_HEADER 			=> true,
			CURLOPT_TIMEOUT			=> 30,
			CURLOPT_URL 			=> $this -> formatUrl(),
			CURLOPT_COOKIE			=> $this -> formatCookies(),
			CURLOPT_HTTPHEADER		=> $this -> headers
		];

		if('get' !== $this -> method) {
			$this -> options[CURLOPT_POSTFIELDS] = $this -> formatParams();
		}

		return $default + $this -> options;
	}
private function createOptions() {

		$default = [

			CURLOPT_RETURNTRANSFER 	=> true,
			CURLOPT_HEADER 			=> true,
			CURLOPT_TIMEOUT			=> 30,
			CURLOPT_URL 			=> $this -> formatUrl(),
			CURLOPT_COOKIE			=> $this -> formatCookies(),
			CURLOPT_HTTPHEADER		=> $this -> headers
		];

		if('get' !== $this -> method) {
			$this -> options[CURLOPT_POSTFIELDS] = $this -> formatParams();
		}

		return $default + $this -> options;
	}
private function createOptions ( ) { $ default = [ CURLOPT_RETURNTRANSFER => true , CURLOPT_HEADER => true , CURLOPT_TIMEOUT => 30 , CURLOPT_URL => $ this -> formatUrl ( ) , CURLOPT_COOKIE => $ this -> formatCookies ( ) , CURLOPT_HTTPHEADER => $ this -> headers ] ; if ( 'get' !== $ this -> method ) { $ this -> options [ CURLOPT_POSTFIELDS ] = $ this -> formatParams ( ) ; } return $ default + $ this -> options ; }
Generates and returns all the options
@return array
Generates and returns all the options