for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Braunstetter\MenuBundle\Items;
final class RouteMenuItem extends Item
{
/**
* @param array<string, string> $routeParameters
* @param array<string, mixed>|null $options
*/
public function __construct(
string $label,
string $routeName,
array $routeParameters,
?string $icon,
?array $options = []
) {
parent::__construct($label, $icon, $options);
$this->setRouteName($routeName);
$this->setRouteParameters($routeParameters);
$this->setType(Item::TYPE_ROUTE);
}