Zephir\Variable::__construct PHP Method

__construct() public method

Variable constructor
public __construct ( string $type, string $name, zephir\Branch $branch, mixed $defaultInitValue = null )
$type string
$name string
$branch zephir\Branch
$defaultInitValue mixed
    public function __construct($type, $name, $branch, $defaultInitValue = null)
    {
        switch ($type) {
            case 'callable':
            case 'object':
            case 'resource':
                $type = 'variable';
                break;
        }
        $this->type = $type;
        $this->name = $name;
        $this->branch = $branch;
    }