<?php

/*
 * This file is part of the official PHP MCP SDK.
 *
 * A collaboration between Symfony and the PHP Foundation.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace Matomo\Dependencies\McpServer\Mcp\Capability\Tool;

final class NameValidator
{
    public function isValid(string $name) : bool
    {
        return 1 === preg_match('/^[a-zA-Z0-9._\\/-]{1,64}$/', $name);
    }
}
