private function executeCommand(array $parameters, string $command)
    {
        foreach ($parameters as $index => $object) {
            $parameters[$index]['command'] = $command;
        }
        $result = $this->execute($parameters);
        if (isset($index)) {
            unset($index);
        }
        if (isset($object)) {
            unset($object);
        }
        unset($parameters);
        unset($command);
        return $result;
    }
private function executeCommand(array $parameters, string $command)
    {
        foreach ($parameters as $index => $object) {
            $parameters[$index]['command'] = $command;
        }
        $result = $this->execute($parameters);
        if (isset($index)) {
            unset($index);
        }
        if (isset($object)) {
            unset($object);
        }
        unset($parameters);
        unset($command);
        return $result;
    }
private function executeCommand ( array $ parameters , string $ command ) { foreach ( $ parameters as $ index => $ object ) { $ parameters [ $ index ] [ 'command' ] = $ command ; } $ result = $ this -> execute ( $ parameters ) ; if ( isset ( $ index ) ) { unset ( $ index ) ; } if ( isset ( $ object ) ) { unset ( $ object ) ; } unset ( $ parameters ) ; unset ( $ command ) ; return $ result ; }
Executes single command.

@param array $parameters The command parameters.
@param string $command The command name.
@return mixed
@throws \IvoPetkov\ObjectStorage\ErrorException
@throws \IvoPetkov\ObjectStorage\ObjectLockedException
Executes single command .