52 lines
938 B
PHP
Executable File
52 lines
938 B
PHP
Executable File
<?php
|
|
|
|
namespace Buzz\Client;
|
|
|
|
abstract class AbstractClient
|
|
{
|
|
protected $ignoreErrors = true;
|
|
protected $maxRedirects = 5;
|
|
protected $timeout = 5;
|
|
protected $verifyPeer = true;
|
|
|
|
public function setIgnoreErrors($ignoreErrors)
|
|
{
|
|
$this->ignoreErrors = $ignoreErrors;
|
|
}
|
|
|
|
public function getIgnoreErrors()
|
|
{
|
|
return $this->ignoreErrors;
|
|
}
|
|
|
|
public function setMaxRedirects($maxRedirects)
|
|
{
|
|
$this->maxRedirects = $maxRedirects;
|
|
}
|
|
|
|
public function getMaxRedirects()
|
|
{
|
|
return $this->maxRedirects;
|
|
}
|
|
|
|
public function setTimeout($timeout)
|
|
{
|
|
$this->timeout = $timeout;
|
|
}
|
|
|
|
public function getTimeout()
|
|
{
|
|
return $this->timeout;
|
|
}
|
|
|
|
public function setVerifyPeer($verifyPeer)
|
|
{
|
|
$this->verifyPeer = $verifyPeer;
|
|
}
|
|
|
|
public function getVerifyPeer()
|
|
{
|
|
return $this->verifyPeer;
|
|
}
|
|
}
|