for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Remorhaz\UniLex\Example\Brainfuck\Command;
use Remorhaz\UniLex\Example\Brainfuck\Exception;
use Remorhaz\UniLex\Example\Brainfuck\Runtime;
class ShiftDataIndexCommand extends AbstractCommand
{
private $dataIndex;
public function __construct(Runtime $runtime, int $index)
parent::__construct($runtime);
$this->dataIndex = $index;
}
/**
* @throws Exception
*/
public function exec(): void
$this->runtime->shiftDataIndex($this->dataIndex);
$this->runtime->shiftCommandIndex(1);