namespace Graphit\Graph\Client;
-use Graphit\Graph\Common\ConnectionInterface;
+use Graphit\Graph\Common\RemoteConnection as RConnection;
/**
* Die RemoteConnection ist die Basis-Klasse für ConnectionInterface
* RemoteConnection::call() weitergeleitet.
*
* @author Sebastian Wassen <sebastian.wassen@graph-it.org>
+ *
+ * @deprecated Use Graphit\Graph\Common\RemoteConnection from graphit/graph-common instead.
*/
-abstract class RemoteConnection implements ConnectionInterface
-{
- /**
- * Leitet den Methodenaufruf an den Graphen weiter.
- *
- * @param string $method die aufgerufene Methode
- * @param array $params die Paremeter der Methode
- *
- * @return mixed|null die Antwort vom Graphen
- */
- protected abstract function call($method, array $params);
-
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function erzeuge($knoten_typ)
- {
- return $this->call('erzeuge', array($knoten_typ));
- }
-
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function vernichte($node_guid)
- {
- return $this->call('vernichte', array($node_guid));
- }
-
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function knotentyp($node_guid)
- {
- return $this->call('knotentyp', array($node_guid));
- }
-
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function setze($node_guid, $attributknoten_typ, $wert)
- {
- return $this->call('setze', array($node_guid, $attributknoten_typ, $wert));
- }
-
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function attribut($node_guid, $attributknoten_typ)
- {
- return $this->call('attribut', array($node_guid, $attributknoten_typ));
- }
-
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function attribute($node_guid, $knoten_typ, $attribute)
- {
- return $this->call('attribute', array($node_guid, $knoten_typ, $attribute));
- }
-
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function attributsknoten($attributknoten_typ, $wert)
- {
- return $this->call('attributsknoten', array($attributknoten_typ, $wert));
- }
-
- /** */
- public function berechne($node_guid, $datenfunktion_name)
- {
- return $this->call('berechne', array($node_guid, $datenfunktion_name));
- }
-
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function verknuepfe($node_guid1, $node_guid2)
- {
- return $this->call('verknuepfe', array($node_guid1, $node_guid2));
- }
-
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function entknuepfe($node_guid1, $node_guid2)
- {
- return $this->call('entknuepfe', array($node_guid1, $node_guid2));
- }
-
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function knoten($node_guid, $knoten_typ)
- {
- return $this->call('knoten', array($node_guid, $knoten_typ));
- }
-
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function liste($node_guid, $knoten_typ, $reihenfolge = false, $eingrenzung = false, array $parameter = array())
- {
- return $this->call('liste', array($node_guid, $knoten_typ, $reihenfolge, $eingrenzung, $parameter));
- }
-
- /** */
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function listeattribute($node_guid, $knoten_typ, $attribute, $reihenfolge = false, $eingrenzung = false, array $parameter = array())
- {
- return $this->call('listeattribute', array($node_guid, $knoten_typ, $attribute, $reihenfolge, $eingrenzung, $parameter));
- }
-
- /** */
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function listezahl($node_guid, $knoten_typ, $eingrenzung = false, array $parameter = array())
- {
- return $this->call('listezahl', array($node_guid, $knoten_typ, $eingrenzung, $parameter));
- }
-
- /** */
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function moegliche($node_guid, $knoten_typ, $reihenfolge = false, $eingrenzung = false, array $parameter = array())
- {
- return $this->call('moegliche', array($node_guid, $knoten_typ, $reihenfolge, $eingrenzung, $parameter));
- }
-
- /** */
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function moeglicheattribute($node_guid, $knoten_typ, $attribute, $reihenfolge = false, $eingrenzung = false, array $parameter = array())
- {
- return $this->call('moeglicheattribute', array($node_guid, $knoten_typ, $attribute, $reihenfolge, $eingrenzung, $parameter));
- }
-
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function moeglichezahl($node_guid, $knoten_typ, $eingrenzung = false, array $parameter = array())
- {
- return $this->call('moeglichezahl', array($node_guid, $knoten_typ, $eingrenzung, $parameter));
- }
-
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function alle($knoten_typ, $reihenfolge = false, $eingrenzung = false, array $parameter = array())
- {
- return $this->call('alle', array($knoten_typ, $reihenfolge, $eingrenzung, $parameter));
- }
-
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function alleattribute($knoten_typ, $attribute, $reihenfolge = false, $eingrenzung = false, array $parameter = array())
- {
- return $this->call('alleattribute', array($knoten_typ, $attribute, $reihenfolge, $eingrenzung, $parameter));
- }
-
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function allezahl($knoten_typ, $eingrenzung = false, array $parameter = array())
- {
- return $this->call('allezahl', array($knoten_typ, $eingrenzung, $parameter));
- }
-
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function aktion($node_guid, $aktionfunktion_name)
- {
- return $this->call('aktion', array($node_guid, $aktionfunktion_name));
- }
-
- /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
- public function service($graphmodulservice_name, ...$parameter)
- {
- return $this->call('service', func_get_args());
- }
-
- /** */
- public function sessionattribut($schluessel, $default = null)
- {
- return $this->call('sessionattribut',[$schluessel, $default]);
- }
-
- /** */
- public function sessionsetze($schluessel, $wert)
- {
- return $this->call('sessionsetze', [$schluessel, $wert]);
- }
-}
+abstract class RemoteConnection extends RConnection { }