| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- namespace Buzz\Client;
- abstract class AbstractClient implements ClientInterface
- {
- protected $ignoreErrors = true;
- protected $maxRedirects = 5;
- protected $timeout = 5;
- protected $verifyPeer = true;
- protected $verifyHost = 2;
- protected $proxy;
- 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;
- }
- public function getVerifyHost()
- {
- return $this->verifyHost;
- }
- public function setVerifyHost($verifyHost)
- {
- $this->verifyHost = $verifyHost;
- }
- public function setProxy($proxy)
- {
- $this->proxy = $proxy;
- }
- public function getProxy()
- {
- return $this->proxy;
- }
- }
|