<?php

class WPML_TM_Rest_Jobs_Package_Helper_Factory {
	private $package_helper = false;

	public function create() {
		if ( false === $this->package_helper ) {
			if ( wpml_is_st_loaded() ) {
				$this->package_helper = new WPML_Package_Helper();
			} else {
				$this->package_helper = null;
			}
		}

		return $this->package_helper;
	}
}
