UID de la puce * * @return states Retourne les données sous forme de tableau de la forme (state, chip, pin, value) * */ public static function getForChip($id_chip){ $chip = Table::get('chip') ->select('id_chip') ->whereId($id_chip); $req = Table::get('state') ->select('state') ->select('value') ->join('id_chip', $chip); return $req->fetch(); } } ?>