removeUsage() public method

public removeUsage ( Op $op )
$op Op
Exemplo n.º 1
0
 public function removeOperand(Operand $op)
 {
     foreach ($this->vars as $key => $value) {
         if ($op === $value) {
             $op->removeUsage($this);
             unset($this->vars[$key]);
             $this->vars = array_values($this->vars);
         }
     }
 }