PHP 클래스 Youshido\Tests\StarWars\Schema\StarWarsData

파일 보기 프로젝트 열기: youshido/graphql 1 사용 예제들

공개 메소드들

메소드 설명
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 ( )

비공개 메소드들

메소드 설명
han ( )
leia ( )
luke ( )
tarkin ( )
threepio ( )
vader ( )

메소드 상세

artoo() 정적인 공개 메소드

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 droids ( )

getCharacter() 정적인 공개 메소드

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

getFriends() 정적인 공개 메소드

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

getHero() 정적인 공개 메소드

static public getHero ( $episode ) : array
$episode
리턴 array

humans() 정적인 공개 메소드

static public humans ( )