public function calcTaxe(Investiment $invest) { $value[$this->name] = floatval($invest->getGain()) * $this->taxe / 100; return $value; }
public function calcTaxe(Investiment $invest) { $valueTaxe = array('name' => $this->name, 'value' => floatval($invest->getGain()) * $this->taxe / 100); return $valueTaxe; }