for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Redislabs\Module\ReJSON\Command;
use Redislabs\Interfaces\CommandInterface;
use Redislabs\Command\CommandAbstract;
use Redislabs\Module\ReJSON\Path;
final class Delete extends CommandAbstract implements CommandInterface
{
protected static $command = 'JSON.DEL';
private function __construct(string $key, Path $path)
$this->arguments = [$key, $path->getPath()];
}
public static function createCommandWithArguments(string $key, string $path) : CommandInterface
return new self(
$key,
$path ? new Path($path) : new Path()
);