Rename command classes using command ID as name.

Some notable exceptions are EVAL and ECHO because having these names
as class names would raise a syntax error.
This commit is contained in:
Daniele Alessandri
2016-06-04 16:17:19 +02:00
parent e4872af747
commit 4b47639f9e
333 changed files with 1121 additions and 1049 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
/*
* This file is part of the Predis package.
*
* (c) Daniele Alessandri <suppakilla@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Predis\Command\Redis;
use Predis\Command\Command as RedisCommand;
/**
* @link http://redis.io/commands/substr
*
* @author Daniele Alessandri <suppakilla@gmail.com>
*/
class SUBSTR extends RedisCommand
{
/**
* {@inheritdoc}
*/
public function getId()
{
return 'SUBSTR';
}
}