Advertisement
NonaG

Calculator - PHP

Mar 14th, 2017
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement