/** * Handles class var PS_CLASS_VAR * @param string $symbol * @param mixed $payload (unused) * @return void */ public function classVarHandler($symbol, $payload) { // skip the current class? if ($this->skip_class) { return; } // get var name $var = $this->token[1]; // remove $ $var = str_replace('$', '', $var); // parse var comment into field map $fm = false; if ($this->comment) { // parse the var's comment for orm tag value $fm = $this->parseVarComment($var, $this->comment); // reset the comment (fix bug #28) $this->comment = ''; } // add field map into the class map if it has type set if ($fm && $fm->getType()) { $this->cm->addField($fm); } }