You are here

GraphQLEnum.php in GraphQL 8.3

File

src/Annotation/GraphQLEnum.php
View source
<?php

namespace Drupal\graphql\Annotation;


/**
 * Annotation for GraphQL scalar plugins.
 *
 * @Annotation
 */
class GraphQLEnum extends GraphQLAnnotationBase {

  /**
   * {@inheritdoc}
   */
  public $pluginType = GRAPHQL_ENUM_PLUGIN;

  /**
   * The typed data type of this type.
   *
   * @var string|null
   */
  public $type = NULL;

  /**
   * The enum's key / value pairs.
   *
   * @var array
   */
  public $values = [];

}

Classes

Namesort descending Description
GraphQLEnum Annotation for GraphQL scalar plugins.