PHP Classes

File: public/Classes/Operationen/Subtraktion.php

Recommend this page to a friend!
  Classes of stefan  >  PHP Calculator  >  public/Classes/Operationen/Subtraktion.php  >  Download  
File: public/Classes/Operationen/Subtraktion.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: 1 year ago
Size: 299 bytes
 

Contents

Class file image Download
<?php
   
namespace Taschenrechner\Classes\Operationen;
   
    class
Subtraktion extends Operation {
       
//Gibt das Zeichen für die Operation zurück
       
public function getSign() {
            return
"-";
        }
       
        public function
calculate($a, $b=NULL) {
           
//Berechne die Operation
           
return $a - $b;
   
        }
    }
?>