* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace ApiPlatform\JsonLd; use ApiPlatform\Api\UrlGeneratorInterface; /** * JSON-LD context builder with Input Output DTO support interface. * * @author Antoine Bluchet */ interface AnonymousContextBuilderInterface extends ContextBuilderInterface { /** * Creates a JSON-LD context based on the given object. * Usually this is used with an Input or Output DTO object. * * @param mixed $object */ public function getAnonymousResourceContext($object, array $context = [], int $referenceType = UrlGeneratorInterface::ABS_PATH): array; }