/**
  * {@inheritdoc}
  */
 public function create(LogNode $log, Log $parent = null)
 {
     $operation = new Callback(function () use($log, $parent) {
         return $this->client->create($log, $parent);
     });
     $this->operationRunner->run($operation);
     return $operation->getResult();
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function create()
 {
     $log = $this->client->create(TreeLog::fromNode(new Container()));
     return $this->from($log);
 }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function child(Node $node)
 {
     $child = $this->client->create(TreeLog::fromNodeAndParent($node, $this->log));
     return new self($this->client, $this->nodeNormalizer, $child);
 }