/**
  * @param Model $obj
  * @return array
  */
 protected function do_create_array(Model $obj)
 {
     return array('name' => $obj->get_name(), 'slug' => $obj->get_slug(), 'term_group' => $obj->get_group());
 }
 /**
  * @param Model|Option $obj
  * @return array
  * @throws Exception
  */
 protected function do_create_array(Model $obj)
 {
     if (!$obj instanceof Option) {
         throw new Exception('Object must be of type \'Option\'');
     }
     return array('option_name' => $obj->get_name(), 'option_value' => $obj->get_value(), 'autoload' => $obj->get_autoload());
 }
 /**
  * @param Model $obj
  * @return array
  */
 protected function do_create_array(Model $obj)
 {
     $parent = 0;
     if ($obj->get_parent() !== null) {
         $parent = $obj->get_parent()->get_id();
     }
     return array('post_author' => $obj->get_author(), 'post_date' => $obj->get_date(), 'post_date_gmt' => $obj->get_date_gmt(), 'post_content' => $obj->get_content(), 'post_title' => $obj->get_title(), 'post_excerpt' => $obj->get_excerpt(), 'post_status' => $obj->get_post_status(), 'comment_status' => $obj->get_comment_status(), 'ping_status' => $obj->get_ping_status(), 'post_password' => $obj->get_password(), 'post_name' => $obj->get_name(), 'to_ping' => $obj->get_to_ping(), 'pinged' => $obj->get_pinged(), 'post_modified' => $obj->get_modified(), 'post_modified_gmt' => $obj->get_modified_gmt(), 'post_content_filtered' => $obj->get_content_filtered(), 'post_parent' => $parent, 'guid' => $obj->get_guid(), 'menu_order' => $obj->get_menu_order(), 'post_type' => $obj->get_type(), 'post_mime_type' => $obj->get_mime_type(), 'comment_count' => $obj->get_comment_count());
 }