/**
  * Generate a class trailer for stored routine wrapper.
  */
 private function writeClassTrailer()
 {
     $this->codeStore->appendSeparator();
     $this->codeStore->append('}');
     $this->codeStore->append('');
     $this->codeStore->appendSeparator();
 }
示例#2
0
 /**
  * Returns a wrapper method for a stored routine without LOB parameters.
  *
  * @param array $routine The metadata of the stored routine.
  */
 public function writeRoutineFunctionWithoutLob($routine)
 {
     $wrapper_args = $this->getWrapperArgs($routine);
     $method_name = $this->nameMangler->getMethodName($routine['routine_name']);
     $this->codeStore->appendSeparator();
     $this->generatePhpDoc($routine);
     $this->codeStore->append('public static function ' . $method_name . '(' . $wrapper_args . ')');
     $this->codeStore->append('{');
     $this->writeResultHandler($routine);
     $this->codeStore->append('}');
     $this->codeStore->append('');
 }