PHPSA\Variable::modify PHP Method

modify() public method

Changes variable type and value.
public modify ( integer $type, mixed $value )
$type integer
$value mixed
    public function modify($type, $value)
    {
        $this->type = (int) $type;
        $this->value = $value;
        if ($this->referencedTo) {
            $this->referencedTo->modify($type, $value);
        }
    }

Usage Example

Example #1
0
 /**
  * @param int $type
  * @param mixed $value
  */
 public function modify($type, $value)
 {
     $this->type = (int) $type;
     $this->value = $value;
     if ($this->referencedTo) {
         $this->referencedTo->modify($type, $value);
     }
 }
All Usage Examples Of PHPSA\Variable::modify