function(string $id_note) { if ($event = $this->getEvent($id_note)) { return $event[$this->class_cfg['arch']['events']['end']] ?? null; } return null; }