References IntegerUriVariableTransformer
Reference
C
Class

ApiPlatform\Api\UriVariableTransformer\IntegerUriVariableTransformer

class ApiPlatform\Api\UriVariableTransformer\IntegerUriVariableTransformer implements ApiPlatform\Api\UriVariableTransformerInterface
{
    public transform($value, array $types, array $context): int
    public supportsTransformation($value, array $types, array $context): bool
}

Methods

transform

public transform($value, array $types, array $context): int

Parameters

value
typesarray
contextarray

Returns

int

supportsTransformation

public supportsTransformation($value, array $types, array $context): bool

Parameters

value
typesarray
contextarray

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