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. | |
getDroid ( $id ) : mixed | null | ||
getFriends ( $character ) | Allows us to query for a character's friends. | |
getHero ( $episode ) : array | ||
getHuman ( $id ) : mixed | null | ||
humans ( ) |
Method | Description | |
---|---|---|
han ( ) | ||
leia ( ) | ||
luke ( ) | ||
tarkin ( ) | ||
threepio ( ) | ||
vader ( ) |
static public artoo ( ) |
static public getCharacter ( $id ) |
static public getFriends ( $character ) |