Spaces:
No application file
No application file
declare(strict_types=1); | |
namespace Mautic\CoreBundle\Predis\Command; | |
use Predis\Command\Command; | |
use Predis\Command\PrefixableCommandInterface; | |
class Unlink extends Command implements PrefixableCommandInterface | |
{ | |
public const ID = 'UNLINK'; | |
public function getId(): string | |
{ | |
return self::ID; | |
} | |
/** | |
* @param mixed[] $arguments | |
* | |
* @return mixed[] | |
*/ | |
protected function filterArguments(array $arguments): array | |
{ | |
return self::normalizeArguments($arguments); | |
} | |
public function prefixKeys($prefix): void | |
{ | |
if ($arguments = $this->getArguments()) { | |
foreach ($arguments as &$key) { | |
$key = "$prefix$key"; | |
} | |
$this->setRawArguments($arguments); | |
} | |
} | |
} | |