code: public function getRelationship($name)
      {
          $parts = explode(':', $name);
          $item = $this->collectorItem;
          if (count($parts) > 1) {
              if (in_array($parts[0], ['child', 'children', 'descendents'])) {
                  if (isset($item->children[$parts[1]])) {
                      return [$item->children[$parts[1]], 'child'];
                  }
              } else {
                  if (isset($item->parents[$parts[1]])) {
                      return [$item->parents[$parts[1]], 'parent'];
                  }
              }
          }
  
          return [false, false];
      }
docs: Get relationship.
  
  @param [[@doctodo param_type:name]] $name [[@doctodo param_description:name]]
  
  @return [[@doctodo return_type:getRelationship]] [[@doctodo return_description:getRelationship]]