/** * @param array $json * * @return TreeLog|null */ private function denormalizeParent($json) { if (array_key_exists('parent', $json)) { return TreeLog::fromId($json['parent']); } return; }
/** * {@inheritdoc} */ public function fromId($identifier) { return $this->from(TreeLog::fromId($identifier)); }
/** * {@inheritdoc} */ public function child(Node $node) { $child = $this->client->create(TreeLog::fromNodeAndParent($node, $this->log)); return new self($this->client, $this->nodeNormalizer, $child); }