* @param string filePath * @param TranslationFile translationFile * @return mixed */ public function __construct($filePath, tao_helpers_translation_TranslationFile $translationFile) { $this->filePath = $filePath; $this->translationFile = $translationFile; } /** * Reads a translation file to persist a TranslationFile in a specific * Subclasses must implement this method to meet the requirement of the * they support such as XLIFF or PO files. * * @abstract * @access public * @author firstname and lastname of author, * @return mixed */ abstract public function write(); /** * Sets the TranslationFile that has to be serialized. * * @access public * @author firstname and lastname of author, * @param TranslationFile translationFile * @return mixed */ public function setTranslationFile(tao_helpers_translation_TranslationFile $translationFile) { $this->translationFile = $translationFile; } /** * Gets the location where the file must be written. * * @access public * @author firstname and lastname of author, * @return string */ public function getFilePath() { $returnValue = (string) ''; return $this->filePath; return (string) $returnValue; } /** * Sets the location where the file has to be written. * * @access public * @author firstname and lastname of author, * @param string filePath * @return mixed */ public function setFilePath($filePath) { $this->filePath = $filePath; } /** * Short description of method getTranslationFile * * @access protected * @author firstname and lastname of author, * @return tao_helpers_translation_TranslationFile */ protected function getTranslationFile() { $returnValue = null; $returnValue = $this->translationFile; return $returnValue; } } /* end of abstract class tao_helpers_translation_TranslationFileWriter */