/**
  * 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);
 }
Esempio n. 2
0
 /**
  * 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 Relationship $rel
  * @param integer $opId
  */
 public function __construct(Client $client, Relationship $rel, $opId)
 {
     parent::__construct($client, new SingleUpdateRelationship($client, $rel), $opId);
 }
Esempio n. 4
0
 /**
  * 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;
 }
Esempio n. 6
0
 /**
  * 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;
 }