1 <?php
2 3 4 5
6
7 namespace frankmayer\ArangoDbPhpCore\Connectors;
8
9
10 use frankmayer\ArangoDbPhpCore\Protocols\Http\AbstractHttpRequest;
11 use frankmayer\ArangoDbPhpCore\Protocols\Http\HttpConnectorInterface;
12
13 14 15 16 17
18 abstract class AbstractHttpConnector implements
19 HttpConnectorInterface
20 {
21
22 const HTTP_EOL = "\r\n";
23
24 25 26
27 protected $verboseLogging;
28 29 30
31 public $client;
32
33 34 35
36 public function __construct()
37 {
38 $this->verboseLogging = false;
39 }
40
41 42 43 44 45
46 public abstract function request(AbstractHttpRequest $request);
47
48 49 50
51 public function setVerboseLogging($verbose)
52 {
53 $this->verboseLogging = $verbose;
54 }
55
56 57 58
59 public function getVerboseLogging()
60 {
61 return $this->verboseLogging;
62 }
63 }
64