errant/tacit

View on GitHub
src/Instruction/Math/Inc.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php 
namespace Tacit\Instruction\Math;
/**
 * Increment
 *
 * @author Tom Morton
 */
class Inc extends \Tacit\Instruction\UnaryOperation {

    public $command = 'INC';

    public function transform($operand, $vm)
    {
        $vm->stack->push($operand += 1);
    }
}