Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Clase Calcula
- * Ejemplo: Documentación para generación
- * automática del documento WSDL
- * @author Víctor Lourido
- */
- class Calcula {
- /**
- * Suma dos números y devuelve el resultado
- *
- * @param float $a
- * @param float $b
- * @return float
- */
- public function suma($a, $b) {
- return $a+$b;
- }
- /**
- * Resta dos números y devuelve el resultado
- *
- * @param float $a
- * @param float $b
- * @return float
- */
- public function resta($a, $b) {
- return $a-$b;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement