Reference
C
Class

ApiPlatform\GraphQl\Resolver\Stage\ReadStage

Read stage of GraphQL resolvers.

class ApiPlatform\GraphQl\Resolver\Stage\ReadStage implements `<a href="/docs/reference/GraphQl/Resolver/Stage/ReadStageInterface">ApiPlatform\GraphQl\Resolver\Stage\ReadStageInterface</a>`
{
    public __construct(ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\State\ProviderInterface $provider, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, string $nestingSeparator)
    public __invoke(null|string $resourceClass, null|string $rootClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): object|array
    public isSequentialArrayOfArrays(array $array): bool
    public isSequentialArray(array $array): bool
    public arrayContainsOnly(array $array, string $type): bool
}
class ApiPlatform\GraphQl\Resolver\Stage\ReadStage implements `<a href="/docs/reference/GraphQl/Resolver/Stage/ReadStageInterface">ApiPlatform\GraphQl\Resolver\Stage\ReadStageInterface</a>`
{
    public __construct(ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\State\ProviderInterface $provider, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, string $nestingSeparator)
    public __invoke(null|string $resourceClass, null|string $rootClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): object|array
    public isSequentialArrayOfArrays(array $array): bool
    public isSequentialArray(array $array): bool
    public arrayContainsOnly(array $array, string $type): bool
}

Methods

__construct

public __construct(ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\State\ProviderInterface $provider, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, string $nestingSeparator)
public __construct(ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\State\ProviderInterface $provider, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, string $nestingSeparator)

Parameters

iriConverterApiPlatform\Api\IriConverterInterface
providerApiPlatform\State\ProviderInterface
serializerContextBuilderApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface
nestingSeparatorstring

__invoke

public __invoke(null|string $resourceClass, null|string $rootClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): object|array
public __invoke(null|string $resourceClass, null|string $rootClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): object|array

Parameters

resourceClassstring
rootClassstring
operationApiPlatform\Metadata\GraphQl\Operation
contextarray

Returns

object
array

isSequentialArrayOfArrays

public isSequentialArrayOfArrays(array $array): bool
public isSequentialArrayOfArrays(array $array): bool

Parameters

arrayarray

Returns

bool

isSequentialArray

public isSequentialArray(array $array): bool
public isSequentialArray(array $array): bool

Parameters

arrayarray

Returns

bool

arrayContainsOnly

public arrayContainsOnly(array $array, string $type): bool
public arrayContainsOnly(array $array, string $type): bool

Parameters

arrayarray
typestring

Returns

bool

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop