Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <?php
  2. /**
  3. * Clase Calcula
  4. * Ejemplo: Documentación para generación
  5. * automática del documento WSDL
  6. * @author Víctor Lourido
  7. */
  8. class Calcula {
  9. /**
  10. * Suma dos números y devuelve el resultado
  11. *
  12. * @param float $a
  13. * @param float $b
  14. * @return float
  15. */
  16. public function suma($a, $b) {
  17. return $a+$b;
  18. }
  19.  
  20. /**
  21. * Resta dos números y devuelve el resultado
  22. *
  23. * @param float $a
  24. * @param float $b
  25. * @return float
  26. */
  27. public function resta($a, $b) {
  28. return $a-$b;
  29. }
  30. }
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement