PHP Class Youshido\Tests\StarWars\Schema\StarWarsData

Datei anzeigen Open project: youshido/graphql Class Usage Examples

Public Methods

Method 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

Method Description
han ( )
leia ( )
luke ( )
tarkin ( )
threepio ( )
vader ( )

Method Details

artoo() static public method

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 method

static public droids ( )

getCharacter() static public method

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

getFriends() static public method

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

getHero() static public method

static public getHero ( $episode ) : array
$episode
return array

humans() static public method

static public humans ( )