vendor/api-platform/core/src/Api/Entrypoint.php line 23

  1. <?php
  2. /*
  3.  * This file is part of the API Platform project.
  4.  *
  5.  * (c) Kévin Dunglas <dunglas@gmail.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. declare(strict_types=1);
  11. namespace ApiPlatform\Api;
  12. use ApiPlatform\Metadata\Resource\ResourceNameCollection;
  13. /**
  14.  * The first path you will see in the API.
  15.  *
  16.  * @author Amrouche Hamza <hamza.simperfit@gmail.com>
  17.  */
  18. final class Entrypoint
  19. {
  20.     public function __construct(private readonly ResourceNameCollection $resourceNameCollection)
  21.     {
  22.     }
  23.     public function getResourceNameCollection(): ResourceNameCollection
  24.     {
  25.         return $this->resourceNameCollection;
  26.     }
  27. }