PHP Class Youshido\GraphQL\Execution\Request

Datei anzeigen Open project: youshido/graphql Class Usage Examples

Public Methods

Method Description
__construct ( $data = [], $variables = [] )
addFragment ( Fragment $fragment )
addFragmentReferences ( $fragmentReferences )
addFragments ( $fragments )
addMutations ( $mutations )
addQueries ( $queries )
addQueryVariables ( $queryVariables )
addVariableReferences ( $variableReferences )
getAllOperations ( ) : Query[]
getFragment ( $name ) : null | Fragment
getFragmentReferences ( ) : array | FragmentReference[]
getFragments ( ) : Fragment[]
getMutations ( ) : Youshido\GraphQL\Parser\Ast\Mutation[]
getQueries ( ) : Query[]
getQueryVariables ( ) : array | Variable[]
getVariable ( $name )
getVariableReferences ( ) : array | VariableReference[]
getVariables ( ) : array
hasFragments ( ) : boolean
hasMutations ( ) : boolean
hasQueries ( ) : boolean
hasVariable ( $name )
setFragmentReferences ( array $fragmentReferences )
setQueryVariables ( array $queryVariables )
setVariables ( array $variables )

Method Details

__construct() public method

public __construct ( $data = [], $variables = [] )

addFragment() public method

public addFragment ( Fragment $fragment )
$fragment Youshido\GraphQL\Parser\Ast\Fragment

addFragmentReferences() public method

public addFragmentReferences ( $fragmentReferences )

addFragments() public method

public addFragments ( $fragments )

addMutations() public method

public addMutations ( $mutations )

addQueries() public method

public addQueries ( $queries )

addQueryVariables() public method

public addQueryVariables ( $queryVariables )

addVariableReferences() public method

public addVariableReferences ( $variableReferences )

getAllOperations() public method

public getAllOperations ( ) : Query[]
return Youshido\GraphQL\Parser\Ast\Query[]

getFragment() public method

public getFragment ( $name ) : null | Fragment
$name
return null | Youshido\GraphQL\Parser\Ast\Fragment

getFragmentReferences() public method

public getFragmentReferences ( ) : array | FragmentReference[]
return array | Youshido\GraphQL\Parser\Ast\FragmentReference[]

getFragments() public method

public getFragments ( ) : Fragment[]
return Youshido\GraphQL\Parser\Ast\Fragment[]

getMutations() public method

public getMutations ( ) : Youshido\GraphQL\Parser\Ast\Mutation[]
return Youshido\GraphQL\Parser\Ast\Mutation[]

getQueries() public method

public getQueries ( ) : Query[]
return Youshido\GraphQL\Parser\Ast\Query[]

getQueryVariables() public method

public getQueryVariables ( ) : array | Variable[]
return array | Youshido\GraphQL\Parser\Ast\ArgumentValue\Variable[]

getVariable() public method

public getVariable ( $name )

getVariableReferences() public method

public getVariableReferences ( ) : array | VariableReference[]
return array | Youshido\GraphQL\Parser\Ast\ArgumentValue\VariableReference[]

getVariables() public method

public getVariables ( ) : array
return array

hasFragments() public method

public hasFragments ( ) : boolean
return boolean

hasMutations() public method

public hasMutations ( ) : boolean
return boolean

hasQueries() public method

public hasQueries ( ) : boolean
return boolean

hasVariable() public method

public hasVariable ( $name )

setFragmentReferences() public method

public setFragmentReferences ( array $fragmentReferences )
$fragmentReferences array

setQueryVariables() public method

public setQueryVariables ( array $queryVariables )
$queryVariables array

setVariables() public method

public setVariables ( array $variables )
$variables array