Skip to content

Commit

Permalink
Merge pull request Sylius#392 from ufik/patch-2
Browse files Browse the repository at this point in the history
Added `function`
  • Loading branch information
michalmarcinkowski committed Jan 7, 2016
2 parents 5cb409c + 746ff31 commit e08d267
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/Translation/basic_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ First let's create a class which will keep our translatable properties:
/**
* @return string
*/
public getTitle()
public function getTitle()
{
return $this->title;
}
/**
* @param string $title
*/
public setTitle($title)
public function setTitle($title)
{
$this->title = $title;
}
Expand All @@ -60,15 +60,15 @@ Now the following class will be actually capable of translating the **title**:
/**
* @return string
*/
public getTitle()
public function getTitle()
{
return $this->translate()->getTitle();
}
/**
* @param string $title
*/
public setTitle($title)
public function setTitle($title)
{
$this->translate()->setTitle($title);
}
Expand Down

0 comments on commit e08d267

Please sign in to comment.