<?php

declare(strict_types=1);

namespace MonsieurBiz\SyliusSearchPlugin\Helper;

class SlugHelper implements SlugHelperInterface
{
    public function toSlug($label): string
    {
        return urlencode($label);
    }

    public function toLabel($slug): string
    {
        return urldecode($slug);
    }
}
