You are here

EdgeInterface.php in Open Social 10.2.x

File

modules/custom/social_graphql/src/Wrappers/EdgeInterface.php
View source
<?php

namespace Drupal\social_graphql\Wrappers;


/**
 * Provides a common interface for edges that DataProducers can work with.
 */
interface EdgeInterface {

  /**
   * Return the cursor for this edge.
   */
  public function getCursor() : string;

  /**
   * Return the node for this edge.
   */
  public function getNode();

}

Interfaces

Namesort descending Description
EdgeInterface Provides a common interface for edges that DataProducers can work with.