SHARE
TWEET

Calculator - PHP

NonaG Mar 14th, 2017 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. namespace CalculatorBundle\Entity;
  3. class Calculator
  4. {
  5.     /*
  6.      * @var float
  7.      */
  8.     private $leftOperand;
  9.     /*
  10.      * @var float
  11.      */
  12.     private  $rightOperand;
  13.     /*
  14.      * @var string
  15.      */
  16.     private  $operator;
  17.     /*
  18.      * @return float
  19.      */
  20.     public function getLeftOperand()
  21.     {
  22.         return $this->leftOperand;
  23.     }
  24.     /*
  25.      * @param float $operand
  26.      *
  27.      * @return Calculator
  28.      */
  29.     public function setLeftOperand($operand)
  30.     {
  31.         $this->leftOperand=$operand;
  32.         return $this;
  33.     }
  34.     /*
  35.      * @return float
  36.      */
  37.     public function getRightOperand()
  38.     {
  39.         return $this->rightOperand;
  40.     }
  41.     /*
  42.      * @param float $operand
  43.      *
  44.      * @return Calculator
  45.      */
  46.     public function setRightOperand($operand)
  47.     {
  48.         $this->rightOperand=$operand;
  49.         return $this;
  50.     }
  51.     /*
  52.      * @return string
  53.      */
  54.     public function getOperator()
  55.     {
  56.         return $this->operator;
  57.     }
  58.     /*
  59.      * @param string $operator
  60.      *
  61.      * @return Calculator
  62.      */
  63.     public function setOperator($operator)
  64.     {
  65.         $this->operator=$operator;
  66.         return $this;
  67.     }
  68. }
  69. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top