/** * Set the relationship to drive the command * * @param Client $client * @param Relationship $rel */ public function __construct(Client $client, Relationship $rel) { parent::__construct($client, $this, null); $this->rel = $rel; }
/** * Set the batch to drive the command * * @param Client $client * @param Batch $batch */ public function __construct(Client $client, Batch $batch) { parent::__construct($client, $this, null); $this->batch = $batch; }
/** * Set the operation to drive the command * * @param Client $client * @param Relationship $rel * @param integer $opId */ public function __construct(Client $client, Relationship $rel, $opId) { parent::__construct($client, new SingleUpdateRelationship($client, $rel), $opId); }
/** * Set the operation to drive the command * * @param Client $client * @param Index $index * @param PropertyContainer $entity * @param string $key * @param string $value * @param integer $opId */ public function __construct(Client $client, Index $index, PropertyContainer $entity, $key, $value, $opId) { parent::__construct($client, new SingleRemoveFromIndex($client, $index, $entity, $key, $value), $opId); }
/** * Set the operation to drive the command * * @param Client $client * @param Relationship $rel * @param integer $opId * @param Batch $batch */ public function __construct(Client $client, Relationship $rel, $opId, Batch $batch) { parent::__construct($client, new SingleCreateRelationship($client, $rel), $opId); $this->batch = $batch; $this->rel = $rel; }
/** * Set the operation to drive the command * * @param Client $client * @param Node $node * @param integer $opId */ public function __construct(Client $client, Classes $node, $opId) { parent::__construct($client, new SingleCreateNode($client, $node), $opId); }
/** * Set the operation to drive the command * * @param Client $client * @param Node $node * @param integer $opId */ public function __construct(Client $client, Node $node, $opId) { parent::__construct($client, new SingleUpdateNode($client, $node), $opId); }
/** * Set the operation to drive the command * * @param Client $client * @param Index $index * @param PropertyContainer $entity * @param string $key * @param string $value * @param integer $opId * @param Batch $batch */ public function __construct(Client $client, Index $index, PropertyContainer $entity, $key, $value, $opId, Batch $batch) { parent::__construct($client, new SingleAddToIndex($client, $index, $entity, $key, $value), $opId); $this->batch = $batch; $this->entity = $entity; }