master

laravel/framework

Last updated at: 29/12/2023 09:21

EntityResolver.php

TLDR

This file defines an interface called EntityResolver in the Illuminate\Contracts\Queue namespace. The interface has a single method called resolve().

Methods

resolve

This method is responsible for resolving the entity for the given ID. It takes two parameters:

  • $type (string): The type of the entity.
  • $id (mixed): The ID of the entity.

The method returns the resolved entity.

<?php

namespace Illuminate\Contracts\Queue;

interface EntityResolver
{
    /**
     * Resolve the entity for the given ID.
     *
     * @param  string  $type
     * @param  mixed  $id
     * @return mixed
     */
    public function resolve($type, $id);
}