public function ligneSuppVue(Saison $saison, $arr, $id) { foreach ($saison->getVues() as $vue) { if ($vue->getVue()->getId() == $id) { return array('code' => 'SUPP-VUE', 'name' => 'Supp ' . $vue->getVue()->getLibelle(), 'achat' => $vue->getSuppAchat($arr), 'vente' => $vue->getSuppVente($arr)); } } }