/**
  * @param array $c
  *
  * @return FW_Ext_Backups_Task_Collection
  * @since 2.0.0
  */
 public static function from_array(array $c)
 {
     if (empty($c)) {
         return null;
     }
     $collection = new self($c['id']);
     if (isset($c['title'])) {
         $collection->set_title($c['title']);
     }
     foreach ($c['tasks'] as $t) {
         $collection->add_task(FW_Ext_Backups_Task::from_array($t));
     }
     return $collection;
 }