PHP 클래스 GraphQL\Type\Definition\FieldDefinition

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

공개 프로퍼티들

프로퍼티 타입 설명
$args FieldArgument[]
$config array Original field definition config
$deprecationReason string | null
$description string | null
$mapFn callable Mutually exclusive with resolve
$name string
$resolveFn callable Mutually exclusive with map

공개 메소드들

메소드 설명
create ( array | Config $field, string $typeName = null ) : FieldDefinition
createMap ( array $fields, string $parentTypeName = null ) : array
defaultComplexity ( $childrenComplexity ) : mixed
getArg ( $name ) : FieldArgument | null
getComplexityFn ( ) : callable | Closure
getDefinition ( ) : array
getType ( ) : Type
isDeprecated ( ) : boolean

보호된 메소드들

메소드 설명
__construct ( array $config ) FieldDefinition constructor.

메소드 상세

__construct() 보호된 메소드

FieldDefinition constructor.
protected __construct ( array $config )
$config array

create() 공개 정적인 메소드

public static create ( array | Config $field, string $typeName = null ) : FieldDefinition
$field array | Config
$typeName string
리턴 FieldDefinition

createMap() 공개 정적인 메소드

public static createMap ( array $fields, string $parentTypeName = null ) : array
$fields array
$parentTypeName string
리턴 array

defaultComplexity() 공개 정적인 메소드

public static defaultComplexity ( $childrenComplexity ) : mixed
$childrenComplexity
리턴 mixed

getArg() 공개 메소드

public getArg ( $name ) : FieldArgument | null
$name
리턴 FieldArgument | null

getComplexityFn() 공개 메소드

public getComplexityFn ( ) : callable | Closure
리턴 callable | Closure

getDefinition() 공개 정적인 메소드

public static getDefinition ( ) : array
리턴 array

getType() 공개 메소드

public getType ( ) : Type
리턴 Type

isDeprecated() 공개 메소드

public isDeprecated ( ) : boolean
리턴 boolean

프로퍼티 상세

$args 공개적으로 프로퍼티

public FieldArgument[],GraphQL\Type\Definition $args
리턴 FieldArgument[]

$config 공개적으로 프로퍼티

Original field definition config
public array $config
리턴 array

$deprecationReason 공개적으로 프로퍼티

public string|null $deprecationReason
리턴 string | null

$description 공개적으로 프로퍼티

public string|null $description
리턴 string | null

$mapFn 공개적으로 프로퍼티

Mutually exclusive with resolve
public callable $mapFn
리턴 callable

$name 공개적으로 프로퍼티

public string $name
리턴 string

$resolveFn 공개적으로 프로퍼티

Mutually exclusive with map
public callable $resolveFn
리턴 callable