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; }