HEX
Server: Apache
System: Linux srv13.cpanelhost.cl 3.10.0-962.3.2.lve1.5.38.el7.x86_64 #1 SMP Thu Jun 18 05:28:41 EDT 2020 x86_64
User: cca63905 (4205)
PHP: 7.3.20
Disabled: NONE
Upload Files
File: //proc/self/cwd/nueva/vendor/doctrine/cache/lib/Doctrine/Common/Cache/InvalidCacheId.php
<?php
declare(strict_types=1);

namespace Doctrine\Common\Cache;

use InvalidArgumentException;

use function sprintf;

/**
 * @deprecated Deprecated without replacement in doctrine/cache 1.11. This class will be dropped in 2.0
 */
final class InvalidCacheId extends InvalidArgumentException
{
    /**
     * @param mixed $id
     */
    public static function exceedsMaxLength($id, int $maxLength): self
    {
        return new self(sprintf('Cache id "%s" exceeds maximum length %d', $id, $maxLength));
    }

    /**
     * @param mixed $id
     */
    public static function containsUnauthorizedCharacter($id, string $character): self
    {
        return new self(sprintf('Cache id "%s" contains unauthorized character "%s"', $id, $character));
    }

    /**
     * @param mixed $id
     */
    public static function containsControlCharacter($id): self
    {
        return new self(sprintf('Cache id "%s" contains at least one control character', $id));
    }
}