Beispiel #1
0
 /**
  * Set the parameters to search
  *
  * @param Client $client
  * @param Label  $label
  * @param string $propertyName
  * @param mixed  $propertyValue
  */
 public function __construct(Client $client, Label $label, $propertyName = null, $propertyValue = null)
 {
     parent::__construct($client);
     $this->label = $label;
     $this->propertyName = $propertyName;
     $this->propertyValue = $propertyValue;
 }
 /**
  * Set the traversal to execute
  *
  * @param Client $client
  * @param Traversal $traversal
  * @param Node $node
  * @param string $returnType
  */
 public function __construct(Client $client, Traversal $traversal, Node $node, $returnType)
 {
     parent::__construct($client);
     $this->traversal = $traversal;
     $this->node = $node;
     $this->returnType = $returnType;
 }
 /**
  * Set the index to drive the command
  *
  * @param Client $client
  * @param Index $index
  * @param string $key
  * @param string $value
  */
 public function __construct(Client $client, Index $index, $key, $value)
 {
     parent::__construct($client);
     $this->index = $index;
     $this->key = $key;
     $this->value = $value;
 }
 /**
  * Set the transaction and statements to use
  *
  * @param Client $client
  * @param Transaction $transaction
  * @param array $statements
  * @param boolean $commit
  */
 public function __construct(Client $client, Transaction $transaction, $statements = array(), $commit = false)
 {
     parent::__construct($client);
     $this->transaction = $transaction;
     $this->statements = $statements;
     $this->commit = $commit;
 }
 /**
  * Set the index to drive the command
  *
  * @param Client $client
  * @param Index $index
  * @param PropertyContainer $entity
  * @param string $key
  * @param string $value
  */
 public function __construct(Client $client, Index $index, PropertyContainer $entity, $key, $value)
 {
     parent::__construct($client);
     $this->index = $index;
     $this->entity = $entity;
     $this->key = $key;
     $this->value = $value;
 }
 /**
  * 
  * @param \Everyman\Neo4j\Client $client
  * @param \Everyman\Neo4j\SimplePointLayer $layer
  * @param float $pointX
  * @param float $pointY
  * @param float $distance
  */
 public function __construct(Client $client, SimplePointLayer $layer, $pointX, $pointY, $distance)
 {
     parent::__construct($client);
     // @todo - implement validation here for lat/long values
     $this->layer = $layer;
     $this->pointX = $pointX;
     $this->pointY = $pointY;
     $this->distance = $distance;
 }
 /**
  * 
  * @param \Everyman\Neo4j\Client $client
  * @param \Everyman\Neo4j\SpatialLayer\SimplePointLayer $layer
  * @param float $minX
  * @param float $maxX
  * @param float $minY
  * @param float $maxY
  */
 public function __construct(Client $client, SimplePointLayer $layer, $minX, $maxX, $minY, $maxY)
 {
     parent::__construct($client);
     // @todo - implement validation here for lat/long values
     $this->layer = $layer;
     $this->minX = $minX;
     $this->maxX = $maxX;
     $this->minY = $minY;
     $this->maxY = $maxY;
 }
 /**
  * Set the parameters to search
  *
  * @param Client $client
  * @param Node   $node
  * @param mixed  $types a string or array of strings
  * @param string $dir
  */
 public function __construct(Client $client, Node $node, $types = array(), $dir = null)
 {
     parent::__construct($client);
     if (empty($dir)) {
         $dir = Relationship::DirectionAll;
     }
     if (empty($types)) {
         $types = array();
     } else {
         if (!is_array($types)) {
             $types = array($types);
         }
     }
     $this->node = $node;
     $this->dir = $dir;
     $this->types = $types;
 }
 /**
  * Set the query to execute
  *
  * @param Client $client
  * @param Query $query
  */
 public function __construct(Client $client, Query $query)
 {
     parent::__construct($client);
     $this->query = $query;
 }
Beispiel #10
0
 /**
  * Set the operation to drive the command
  *
  * @param Client $client
  * @param SingleCommand $base
  * @param integer $opId
  */
 public function __construct(Client $client, SingleCommand $base, $opId)
 {
     parent::__construct($client);
     $this->base = $base;
     $this->opId = $opId;
 }
Beispiel #11
0
 /**
  * Set the parameters to search
  *
  * @param Client     $client
  * @param PathFinder $finder
  */
 public function __construct(Client $client, PathFinder $finder)
 {
     parent::__construct($client);
     $this->finder = $finder;
 }
Beispiel #12
0
 /**
  * Set the transaction to rollback
  *
  * @param Client $client
  * @param Transaction $transaction
  */
 public function __construct(Client $client, Transaction $transaction)
 {
     parent::__construct($client);
     $this->transaction = $transaction;
 }
 /**
  * Set the node to drive the command
  *
  * @param Client $client
  * @param Node $node
  */
 public function __construct(Client $client, Node $node)
 {
     parent::__construct($client);
     $this->node = $node;
 }
 /**
  * Set the simplePointLayer to drive the command
  *
  * @param Client $client
  * @param Node $node
  */
 public function __construct(Client $client, SimplePointLayer $simplePointLayer)
 {
     parent::__construct($client);
     $this->simplePointLayer = $simplePointLayer;
 }
 /**
  * Set the relationship to drive the command
  *
  * @param Client $client
  * @param Relationship $rel
  */
 public function __construct(Client $client, Relationship $rel)
 {
     parent::__construct($client);
     $this->rel = $rel;
 }
Beispiel #16
0
 /**
  * Set the layer to drive the command
  *
  * @param Client $client
  * @param SpatialLayer $layer
  * @param PropertyContainer $entity
  * @param string $key
  * @param string $value
  */
 public function __construct(Client $client, SpatialLayer $layer, PropertyContainer $entity)
 {
     parent::__construct($client);
     $this->layer = $layer;
     $this->entity = $entity;
 }
 /**
  * Set the type of index to retrieve
  *
  * @param Client $client
  * @param string $type
  */
 public function __construct(Client $client, $type)
 {
     parent::__construct($client);
     $this->type = $type;
 }
 /**
  * Set the index to drive the command
  *
  * @param Client $client
  * @param Index $index
  */
 public function __construct(Client $client, Index $index)
 {
     parent::__construct($client);
     $this->index = $index;
 }