/**
  * Get post environment diff object for a batch.
  *
  * @param Batch $batch
  *
  * @return array
  */
 public function get_post_diffs(Batch $batch)
 {
     $objects = array();
     $diffs = get_post_meta($batch->get_id(), 'sme_post_diff');
     if (empty($diffs)) {
         return $objects;
     }
     foreach ($diffs as $diff) {
         $obj = new Post_Env_Diff($diff['stage_id']);
         $obj->set_revision_id($diff['revision_id']);
         $obj->set_prod_id($diff['prod_id']);
         $obj->set_stage_status($diff['stage_status']);
         $obj->set_parent_guid($diff['parent_guid']);
         $objects[$diff['stage_id']] = $obj;
     }
     return $objects;
 }