$segment = new Segment($db, $segmentId);
 $segment->setCategory($category);
 $segment->setPlaylistId($playlistId);
 $segment->setDuration(null);
 $segment->setStartTime($segmentTime);
 switch ($category) {
     case 2:
     case 3:
         $segment->setName($name);
         $segment->setAuthor($author);
         $segment->setAlbum($album);
         $segment->setCategory($category);
         $segment->setIsCanCon($canCon);
         $segment->setIsNewRelease($newRelease);
         $segment->setIsFrenchVocalMusic($frenchVocalMusic);
         $segment->setAdNumber(null);
         break;
     case 5:
         $segment->setName(null);
         $segment->setAuthor(null);
         $segment->setAlbum(null);
         $segment->setIsCanCon(null);
         $segment->setIsNewRelease(null);
         $segment->setIsFrenchVocalMusic(null);
         $segment->setAdNumber($adNumber);
         break;
     case 4:
         $segment->setName($name);
         $segment->setAuthor(null);
         $segment->setAlbum(null);
         $segment->setIsCanCon(false);