diff --git a/lib/Textmaster/Model/Document.php b/lib/Textmaster/Model/Document.php index 8605f54..fde64ae 100644 --- a/lib/Textmaster/Model/Document.php +++ b/lib/Textmaster/Model/Document.php @@ -203,6 +203,14 @@ public function getSourceContent() return $this->formatTranslatedContent(); } + /** + * {@inheritdoc} + */ + public function getTranslatedContent() + { + return $this->getSourceContent(); + } + /** * {@inheritdoc} */ diff --git a/lib/Textmaster/Model/DocumentInterface.php b/lib/Textmaster/Model/DocumentInterface.php index 5f42c1c..3316867 100644 --- a/lib/Textmaster/Model/DocumentInterface.php +++ b/lib/Textmaster/Model/DocumentInterface.php @@ -128,6 +128,15 @@ public function getType(); */ public function getSourceContent(); + /** + * Get translated content. + * + * @deprecated since version 0.2.7, to be removed in 0.3. Use getSourceContent(). + * + * @return string|array + */ + public function getTranslatedContent(); + /** * Get word count. *