public function __construct($className, $namespace = "", $isArray = false) { parent::__construct($namespace); $this->_isArray = $isArray; $this->_isScalar = false; if (count($this->parts) === 0) { switch ($className) { case "int": case "string": case "float": case "array": case "mixed": case "void": case "object": case "bool": case "null": case "false": case "true": $this->_isScalar = true; break; } } $this->addPart($className); }