Added __toString method to Lang class.

This commit is contained in:
Taylor Otwell 2011-07-21 08:32:59 -07:00
parent 9f8e56d687
commit b7ab358297
1 changed files with 8 additions and 0 deletions

View File

@ -135,4 +135,12 @@ public function replace($replacements)
return $this;
}
/**
* Get the string content of the language line.
*/
public function __toString()
{
return $this->get();
}
}