private function initialize() { $this->initialized = true; $parseResult = DocBlockParser::parsePropertyDocBlock($this->reflector); $this->description = $parseResult->description; $resolver = new Helper\ParserClassNameResolver($this->getDeclaringType()->getName()); $this->type = Type::of($parseResult->type, $resolver); }
private function initialize() { $this->initialized = true; $this->parseResult = DocBlockParser::parseFunctionDocBlock($this->reflector); //TODO getDeclaringType is not available for FunctionInfo $this->resolver = new ParserClassNameResolver($this->getDeclaringType()->getName()); if ($this->parseResult->resultInfo != null) { $description = $this->parseResult->resultInfo->description; $type = Type::of($this->parseResult->resultInfo->type, $this->resolver); $this->resultInfo = new ResultInfo($description, $type); } }