<?php

namespace KupShop\GraphQLBundle\ApiPublic\Types\Menu;

use TheCodingMachine\GraphQLite\Annotations\Field;
use TheCodingMachine\GraphQLite\Annotations\Type;

/**
 * @Type()
 */
class MenuItem extends \KupShop\GraphQLBundle\ApiShared\Types\Section\Section
{
    /**
     * URL adresa.
     *
     * @Field
     */
    public function getUrl(): string
    {
        return path('page_not_found', ['path' => $this->section->getUrl()]);
    }
}
