References ReadStage
Reference
C
Class

ApiPlatform\GraphQl\Resolver\Stage\ReadStage

Read stage of GraphQL resolvers.

class ApiPlatform\GraphQl\Resolver\Stage\ReadStage implements ApiPlatform\GraphQl\Resolver\Stage\ReadStageInterface
{
    public __construct($iriConverter, `<a href="/docs/main/references/State/ProviderInterface">ApiPlatform\State\ProviderInterface</a>` $provider, `<a href="/docs/main/references/GraphQl/Serializer/SerializerContextBuilderInterface">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

Parameters

iriConverter`ApiPlatform\Metadata\IriConverterInterface`
provider`ApiPlatform\State\ProviderInterface`
serializerContextBuilder`ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface`
nestingSeparatorstring

__invoke

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

Parameters

resourceClassstring
rootClassstring
operation`ApiPlatform\Metadata\GraphQl\Operation`
contextarray

Returns

object
array

isSequentialArrayOfArrays

public isSequentialArrayOfArrays(array $array): bool

Parameters

arrayarray

Returns

bool

isSequentialArray

public isSequentialArray(array $array): bool

Parameters

arrayarray

Returns

bool

arrayContainsOnly

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

Parameters

arrayarray
typestring

Returns

bool

Made with love by

Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.

Learn more

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop