Reference
C
Class

ApiPlatform\Api\UriVariableTransformer\DateTimeUriVariableTransformer

class ApiPlatform\Api\UriVariableTransformer\DateTimeUriVariableTransformer implements `<a href="/docs/reference/Api/UriVariableTransformerInterface">ApiPlatform\Api\UriVariableTransformerInterface</a>`
{
    public __construct()
    public transform($value, array $types, array $context): DateTimeInterface
    public supportsTransformation($value, array $types, array $context): bool
}
class ApiPlatform\Api\UriVariableTransformer\DateTimeUriVariableTransformer implements `<a href="/docs/reference/Api/UriVariableTransformerInterface">ApiPlatform\Api\UriVariableTransformerInterface</a>`
{
    public __construct()
    public transform($value, array $types, array $context): DateTimeInterface
    public supportsTransformation($value, array $types, array $context): bool
}

Methods

__construct

public __construct()
public __construct()

transform

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

Parameters

value
typesarray
contextarray

Returns

DateTimeInterface

supportsTransformation

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

Parameters

value
typesarray
contextarray

Returns

bool

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop