PHP Class Youshido\Tests\StarWars\Schema\StarWarsData

Afficher le fichier Open project: youshido/graphql 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.
getFriends ( $character ) Allows us to query for a character's friends.
getHero ( $episode ) : array
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 )

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

humans() static public méthode

static public humans ( )