References DateTimeUriVariableTransformer
Reference
C
Class

ApiPlatform\Api\UriVariableTransformer\DateTimeUriVariableTransformer

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

Methods

__construct

public __construct()

transform

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

Parameters

value
typesarray
contextarray

Returns

DateTimeInterface

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