Skip to content

Commit

Permalink
Merge pull request bobthecow#5 from jjbohn/patch-4
Browse files Browse the repository at this point in the history
Added #word() to Lorem.
  • Loading branch information
bobthecow committed Dec 29, 2011
2 parents 1f228b4 + d433752 commit 4ca096b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Faker/Lorem.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@
*/
abstract class Lorem extends Faker
{
/**
* Return a random "lorem ipsum" word.
*
* @access public
* @static
* @return string Word
*/
public static function word()
{
$words = self::words(1);
return reset($words);
}

/**
* Return random "lorem ipsum" words.
*
Expand Down

0 comments on commit 4ca096b

Please sign in to comment.