/**
  * WPML_Translations_Queue_Jobs_Model constructor.
  *
  * @param SitePress                 $sitepress
  * @param TranslationManagement     $tm_instance
  * @param WPML_TM_API               $tm_api
  * @param WPML_TM_Post_Link_Factory $post_link_factory
  * @param array                     $translation_jobs
  */
 public function __construct($sitepress, &$tm_instance, &$tm_api, &$post_link_factory, array $translation_jobs)
 {
     parent::__construct($tm_instance);
     $this->translation_jobs = $translation_jobs;
     $this->tm_api =& $tm_api;
     $this->post_link_factory =& $post_link_factory;
     $this->post_types = $sitepress->get_translatable_documents(true);
     $this->post_types = apply_filters('wpml_get_translatable_types', $this->post_types);
 }
 /**
  * WPML_Custom_Field_Setting constructor.
  *
  * @param TranslationManagement $tm_instance
  * @param string                $index
  */
 public function __construct(&$tm_instance, $index)
 {
     parent::__construct($tm_instance);
     $this->index = $index;
 }