Skip to content

Commit

Permalink
Fix BC break in Document model (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Ducoudray authored Nov 16, 2016
1 parent f5d5406 commit 9fad862
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/Textmaster/Model/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,14 @@ public function getSourceContent()
return $this->formatTranslatedContent();
}

/**
* {@inheritdoc}
*/
public function getTranslatedContent()
{
return $this->getSourceContent();
}

/**
* {@inheritdoc}
*/
Expand Down
9 changes: 9 additions & 0 deletions lib/Textmaster/Model/DocumentInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 9fad862

Please sign in to comment.