| 1 | <?php |
||
| 11 | class Client |
||
| 12 | { |
||
| 13 | private $reader; |
||
| 14 | private $writer; |
||
| 15 | |||
| 16 | 15 | public function __construct(Reader $reader, Writer $writer) |
|
| 21 | |||
| 22 | 12 | public function getReader() |
|
| 26 | |||
| 27 | 8 | public function getWriter() |
|
| 31 | |||
| 32 | 8 | public function mark($name, array $values = []) |
|
| 64 | |||
| 65 | 12 | public function query($query) |
|
| 69 | |||
| 70 | /** |
||
| 71 | * Returns strings with space, comma, or equals sign characters backslashed per Influx write protocol syntax |
||
| 72 | * |
||
| 73 | * @param string $value |
||
| 74 | * @return string |
||
| 75 | */ |
||
| 76 | 8 | private function addSlashes($value) |
|
| 88 | } |
||
| 89 |