Example #1
0
 private function sellTonico($quantity, tonico $tonico)
 {
     $this->quantityTonico += $quantity;
     if (isset($_SESSION[self::SESSION_TONICO]) === true) {
         $_SESSION[self::SESSION_TONICO] += $quantity;
     } else {
         $_SESSION[self::SESSION_TONICO] = $quantity;
     }
     $tonico->subtractStock($quantity);
 }