Ejemplo n.º 1
0
 /**
  * @param array $json
  *
  * @return TreeLog|null
  */
 private function denormalizeParent($json)
 {
     if (array_key_exists('parent', $json)) {
         return TreeLog::fromId($json['parent']);
     }
     return;
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function fromId($identifier)
 {
     return $this->from(TreeLog::fromId($identifier));
 }
Ejemplo 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);
 }