Loading src/UnicaenParametre/Entity/Db/Parametre.php +12 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,18 @@ class Parametre } public function getTemoins() : array { $on = []; $off = []; $listing = explode(";", $this->getValeur()); foreach ($listing as $item) { if (isset($item[0])) { if ($item[0] === '!') $off[] = substr($item, 1); else $on[] = $item; } } return [ 'on' => $on, 'off' => $off]; } } Loading Loading
src/UnicaenParametre/Entity/Db/Parametre.php +12 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,18 @@ class Parametre } public function getTemoins() : array { $on = []; $off = []; $listing = explode(";", $this->getValeur()); foreach ($listing as $item) { if (isset($item[0])) { if ($item[0] === '!') $off[] = substr($item, 1); else $on[] = $item; } } return [ 'on' => $on, 'off' => $off]; } } Loading