src/Router/Interfaces/RouteIdentifierInterface.php
<?php
/*
* This file is part of Chevere.
*
* (c) Rodolfo Berrios <rodolfo@chevere.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Chevere\Router\Interfaces;
use Chevere\Common\Interfaces\ToArrayInterface;
use Chevere\Throwable\Exceptions\InvalidArgumentException;
/**
* Describes the component in charge of describing the route identifier.
*/
interface RouteIdentifierInterface extends ToArrayInterface
{
/**
* @throws InvalidArgumentException
*/
public function __construct(string $group, string $name);
/**
* Provides access to the `$group` instance.
*/
public function group(): string;
/**
* Provides access to the `$name` instance.
*/
public function name(): string;
}