/** * {@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(); }
/** * {@inheritdoc} */ public function create() { $log = $this->client->create(TreeLog::fromNode(new Container())); return $this->from($log); }
/** * {@inheritdoc} */ public function child(Node $node) { $child = $this->client->create(TreeLog::fromNodeAndParent($node, $this->log)); return new self($this->client, $this->nodeNormalizer, $child); }