<?php declare(strict_types=1);

namespace Newland\Toubiz\Services\Neos\Service;

use Neos\Flow\Annotations as Flow;
use Newland\Toubiz\Sync\Neos\Domain\Model\Service;

/**
 * @Flow\Scope("singleton")
 */
class ServiceUrlService
{
    public function generateUrl(Service $service): ?string
    {
        return $service->getDetailUrl();
    }
}
