errant/tacit

View on GitHub
src/Instruction/UnaryOperation.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace Tacit\Instruction;
/**
 * Represents a unary operation
 *
 * Pops one item from the stack and transforms it in some way
 *
 * @author Tom Morton
 */
class UnaryOperation extends \Tacit\Instruction {

    public function execute($vm)
    {
        $operand = $vm->stack->pop();
        $this->transform($operand, $vm);
    }

    public function transform($operand, $vm)
    {

    }
}