public function setTimeOut($time) { if (!is_numeric($time)) { //Should throw a Exception? renturn; } $this->headers['timeout'] = $time; return $this; }