-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathVertexHandler.php
43 lines (38 loc) · 1.04 KB
/
VertexHandler.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* ArangoDB PHP client: vertex document handler
*
* @package ArangoDBClient
* @author Jan Steemann
* @author Frank Mayer
* @copyright Copyright 2012, triagens GmbH, Cologne, Germany
* @since 1.2
*/
namespace ArangoDBClient;
/**
* A handler that manages vertices.
* A vertex-document handler that fetches vertices from the server and
* persists them on the server. It does so by issuing the
* appropriate HTTP requests to the server.
*
* @package ArangoDBClient
* @since 1.2
*/
class VertexHandler extends DocumentHandler
{
/**
* Intermediate function to call the createFromArray function from the right context
*
* @param $data
* @param $options
*
* @return Document
* @throws \ArangoDBClient\ClientException
*/
public function createFromArrayWithContext($data, $options)
{
$_documentClass = $this->_documentClass;
return $_documentClass::createFromArray($data, $options);
}
}
class_alias(VertexHandler::class, '\triagens\ArangoDb\VertexHandler');