public function __construct($filePath, Reflector $reflection, $tagProcessors = array()) { $this->filePath = $filePath; $this->reflection = $reflection; $this->tagProcessors = $tagProcessors; foreach ($this->reflection->getVariables() as $var) { $this->variableBuilders[$var->getName()] = new VariableBuilder($var, $this->getReflection(), $filePath, $this->tagProcessors); } $thisVar = $this->reflection->getThisVariable(); $this->variableBuilders['this'] = new VariableBuilder($thisVar, $this->getReflection(), $filePath, $this->tagProcessors); }