You are here

interface GarageInterface in GraphQL 8.3

Interface definition for a garage.

Used for testing GraphQL queries and mutations.

Hierarchy

Expanded class hierarchy of GarageInterface

All classes that implement GarageInterface

6 files declare their use of GarageInterface
BuyCar.php in tests/modules/graphql_plugin_test/src/Plugin/GraphQL/Mutations/BuyCar.php
Garage.php in tests/modules/graphql_plugin_test/src/Plugin/GraphQL/Fields/Garage.php
MutationTest.php in tests/src/Kernel/Extension/MutationTest.php
OverrideTypeTest.php in tests/src/Kernel/Extension/OverrideTypeTest.php
RecursiveTypeTest.php in tests/src/Kernel/Extension/RecursiveTypeTest.php

... See full list

File

tests/modules/graphql_plugin_test/src/GarageInterface.php, line 10

Namespace

Drupal\graphql_plugin_test
View source
interface GarageInterface {

  /**
   * Retrieve a list of vehicles.
   *
   * @return mixed
   *   The list of vehicles, parked in the garage.
   */
  public function getVehicles();

  /**
   * Add a vehicle to your garage.
   *
   * @param array $vehicle
   *   The vehicles properties.
   * @param int $lot
   *   The parking lot.
   *
   * @return int
   *   The number of the parking lot.
   */
  public function insertVehicle(array $vehicle, $lot = NULL);

  /**
   * Get vehicle by parking lot.
   *
   * @param int $lot
   *   The parking lot.
   *
   * @return array
   *   The vehicle definition.
   */
  public function getVehicle($lot);

  /**
   * Remove a vehicle from the garage.
   *
   * @param int $lot
   *   The parking lot.
   *
   * @return array
   *   The removed vehicle.
   */
  public function removeVehicle($lot);

}

Members

Namesort descending Modifiers Type Description Overrides
GarageInterface::getVehicle public function Get vehicle by parking lot. 1
GarageInterface::getVehicles public function Retrieve a list of vehicles. 1
GarageInterface::insertVehicle public function Add a vehicle to your garage. 1
GarageInterface::removeVehicle public function Remove a vehicle from the garage. 1