PHP Class GraphQL\Tests\StarWarsData

Afficher le fichier Open project: webonyx/graphql-php Class Usage Examples

Méthodes publiques

Méthode Description
artoo ( ) We export artoo directly because the schema returns him from a root field, and hence needs to reference him.
droids ( )
getCharacter ( $id ) Helper function to get a character by ID.
getDroid ( $id ) : mixed | null
getFriends ( $character ) Allows us to query for a character's friends.
getHero ( $episode ) : array
getHuman ( $id ) : mixed | null
humans ( )

Private Methods

Méthode Description
han ( )
leia ( )
luke ( )
tarkin ( )
threepio ( )
vader ( )

Method Details

artoo() static public méthode

We export artoo directly because the schema returns him from a root field, and hence needs to reference him.
static public artoo ( )

droids() static public méthode

static public droids ( )

getCharacter() static public méthode

Helper function to get a character by ID.
static public getCharacter ( $id )

getDroid() static public méthode

static public getDroid ( $id ) : mixed | null
$id
Résultat mixed | null

getFriends() static public méthode

Allows us to query for a character's friends.
static public getFriends ( $character )

getHero() static public méthode

static public getHero ( $episode ) : array
$episode
Résultat array

getHuman() static public méthode

static public getHuman ( $id ) : mixed | null
$id
Résultat mixed | null

humans() static public méthode

static public humans ( )