Ajuste POO

Ajuste POO
parent 93331040
/vendor/
/vendor/composer/
composer.lock
\ No newline at end of file
...@@ -15,6 +15,6 @@ class Context ...@@ -15,6 +15,6 @@ class Context
public function handle() public function handle()
{ {
$this->strategy->calcular(); return $this->strategy->calcular();
} }
} }
...@@ -13,7 +13,10 @@ class IcaYopal extends Ica implements StrategyInterface ...@@ -13,7 +13,10 @@ class IcaYopal extends Ica implements StrategyInterface
public function calcular() public function calcular()
{ {
return [4 return [
'impuesto' => $this->calcularImpuesto(),
'descuento' => $this->calcularDescuento(),
'total' => $this->total()
]; ];
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment