<?php

abstract class WPML_TM_Job_Factory_User {

	/** @var  WPML_Translation_Job_Factory $tm_job_factory */
	protected $job_factory;

	/**
	 * WPML_TM_Xliff_Reader constructor.
	 *
	 * @param WPML_Translation_Job_Factory $job_factory
	 */
	public function __construct( $job_factory ) {
		$this->job_factory = $job_factory;
	}

	/**
	 * @param $content
	 *
	 * @return bool
	 */
	protected function is_valid_unit_content( $content ) {
		$content = preg_replace( '/[^#\w]*/u', '', $content );
		return $content || '0' === $content;
	}
}