graphql_compose-1.0.0-beta20/modules/graphql_compose_edges/src/Wrappers/Edge.php

modules/graphql_compose_edges/src/Wrappers/Edge.php
<?php

declare(strict_types=1);

namespace Drupal\graphql_compose_edges\Wrappers;

/**
 * Default implementation for edges.
 */
class Edge implements EdgeInterface {

  /**
   * Constructs a Edge object.
   *
   * @param mixed $node
   *   The node for this edge.
   * @param string $cursor
   *   The cursor for this edge.
   */
  public function __construct(
    protected mixed $node,
    protected string $cursor,
  ) {}

  /**
   * {@inheritdoc}
   */
  public function getCursor(): string {
    return $this->cursor;
  }

  /**
   * {@inheritdoc}
   */
  public function getNode() {
    return $this->node;
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc