Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace CalculatorBundle\Entity;
- class Calculator{
- /**
- * @var float
- */
- private $leftOperand;
- /**
- * @var float
- */
- private $rightOperand;
- /**
- * @var string
- */
- private $operator;
- /**
- * Get left operand
- * @return float
- */
- public function getLeftOperand(){
- return $this->leftOperand;
- }
- /**
- * set left operand
- *
- * @param float $operand
- *
- * @return Calculator
- */
- public function setLeftOperand($operand){
- $this->leftOperand = $operand;
- return $this;
- }
- /**
- * Get right operand
- *
- * @return float
- */
- public function getRightOperand(){
- return $this->rightOperand;
- }
- /**
- * set right operand
- * @param float $operand
- *
- * @return Calculator
- */
- public function setRightOperand($operand){
- $this->rightOperand = $operand;
- return $this;
- }
- /**
- * Get operator
- *
- * @return float
- */
- public function getOperand(){
- return $this->operator;
- }
- /**
- * set right $operator
- *
- * @param string $operator
- *
- *
- * @return Calculator
- */
- public function setOperator($operator){
- $this->operator = $operator;
- return $this;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement