chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Repository/ResourceWithLinkInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

/* For licensing terms, see /license.txt */

namespace Chamilo\CoreBundle\Repository;

use Chamilo\CoreBundle\Entity\ResourceInterface;
use Symfony\Component\Routing\RouterInterface;

/**
 * Allows resources to connect with a custom URL.
 */
interface ResourceWithLinkInterface
{
    public function getLink(ResourceInterface $resource, RouterInterface $router, array $extraParams = []): string;
}