original_string: private function createNewLock(string $node, string $value)
      {
          // Default Node Permissions
          $acl = [['perms' => \Zookeeper::PERM_ALL, 'scheme' => 'world', 'id' => 'anyone']];
          // This ensures that the nodes are deleted when the client session to zookeeper server ends.
          $type = \Zookeeper::EPHEMERAL;
  
          try {
              $this->zookeeper->create($node, $value, $acl, $type);
          } catch (\ZookeeperException $ex) {
              if (\Zookeeper::NODEEXISTS === $ex->getCode()) {
                  throw new LockConflictedException($ex);
              }
  
              throw new LockAcquiringException($ex);
          }
      }
code: private function createNewLock(string $node, string $value)
      {
          // Default Node Permissions
          $acl = [['perms' => \Zookeeper::PERM_ALL, 'scheme' => 'world', 'id' => 'anyone']];
          // This ensures that the nodes are deleted when the client session to zookeeper server ends.
          $type = \Zookeeper::EPHEMERAL;
  
          try {
              $this->zookeeper->create($node, $value, $acl, $type);
          } catch (\ZookeeperException $ex) {
              if (\Zookeeper::NODEEXISTS === $ex->getCode()) {
                  throw new LockConflictedException($ex);
              }
  
              throw new LockAcquiringException($ex);
          }
      }
code_tokens: private function createNewLock ( string $ node , string $ value ) { // Default Node Permissions $ acl = [ [ 'perms' => \ Zookeeper :: PERM_ALL , 'scheme' => 'world' , 'id' => 'anyone' ] ] ; // This ensures that the nodes are deleted when the client session to zookeeper server ends. $ type = \ Zookeeper :: EPHEMERAL ; try { $ this -> zookeeper -> create ( $ node , $ value , $ acl , $ type ) ; } catch ( \ ZookeeperException $ ex ) { if ( \ Zookeeper :: NODEEXISTS === $ ex -> getCode ( ) ) { throw new LockConflictedException ( $ ex ) ; } throw new LockAcquiringException ( $ ex ) ; } }
docstring: Creates a zookeeper node.
  
  @param string $node  The node which needs to be created
  @param string $value The value to be assigned to a zookeeper node
  
  @throws LockConflictedException
  @throws LockAcquiringException
docstring_tokens: Creates a zookeeper node .