public function setScalar($value) { $this->type = Types::detectType($value); $this->value = $value; $this->is_const = true; $this->is_var = false; $this->is_mixed = false; return $this; }