rob-revisited/ide/tests/fixtures/api-platform-expected/state-provider.php

15 lines
430 B
PHP

<?php
namespace App\State;
use ApiPlatform\Metadata\Operation;
use ApiPlatform\State\ProviderInterface;
final class BookProvider implements ProviderInterface
{
public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null
{
// Retrieve the state from somewhere: a collection (array / iterable of objects), one object, or null (404)
return null;
}
}