/** * generate() * * @return string */ public function generate() { return parent::generate() . ';'; }
/** * generate() * * @return string */ public function generate() { $output = ''; if ($this->_type && !in_array($this->_type, self::$_simple)) { $output .= $this->_type . ' '; } if ($this->_passedByReference === true) { $output .= '&'; } $output .= '$' . $this->_name; if ($this->_defaultValue !== null) { $output .= ' = '; if (is_string($this->_defaultValue)) { $output .= PhpValue::escape($this->_defaultValue); } else { if ($this->_defaultValue instanceof \Zend\CodeGenerator\Php\PhpParameterDefaultValue) { $output .= (string) $this->_defaultValue; } else { $output .= $this->_defaultValue; } } } return $output; }