public function index($property, $type, $class = null)
    {
        $commandClass = $this->getCommandClass('index.create');
        $this->command = new $commandClass($property, $type, $class);

        return $this->command;
    }
public function index($property, $type, $class = null)
    {
        $commandClass = $this->getCommandClass('index.create');
        $this->command = new $commandClass($property, $type, $class);

        return $this->command;
    }
public function index ( $ property , $ type , $ class = null ) { $ commandClass = $ this -> getCommandClass ( 'index.create' ) ; $ this -> command = new $ commandClass ( $ property , $ type , $ class ) ; return $ this -> command ; }
Creates a index

@param   string $property
@param   string $class
@param   string $type
@return  Query
Creates a index