PHP Classes

File: public/Classes/Operationen/Multiplikation.php

Recommend this page to a friend!
  Classes of stefan   PHP Calculator   public/Classes/Operationen/Multiplikation.php   Download  
File: public/Classes/Operationen/Multiplikation.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Calculator
Calculate the result of multiple math operations
Author: By
Last change:
Date: 2 years ago
Size: 267 bytes
 

Contents

Class file image Download
<?php
   
namespace Taschenrechner\Classes\Operationen;

    class
Multiplikation extends Operation {
       
//Gibt das Zeichen für die Operation zurück
       
public function getSign() {
            return
"*";
        }
       
        public function
calculate($a, $b=NULL) {
            return
$a*$b;
        }
    }
?>