PHP Class Prose\FromUsers

Inheritance: extends Prose
Show file Open project: datasift/storyplayer

Public Methods

Method Description
generateNewPassword ( integer $minLength = 8, integer $maxLength = 20 ) : string generates a random password of the requested length
getUser ( string $userId ) : DataSift\Stone\ObjectLib\BaseObject return a user from the test users file

Method Details

generateNewPassword() public method

generates a random password of the requested length
public generateNewPassword ( integer $minLength = 8, integer $maxLength = 20 ) : string
$minLength integer minimum number of characters to include
$maxLength integer maximum number of characters to include
return string the generated password

getUser() public method

return a user from the test users file
public getUser ( string $userId ) : DataSift\Stone\ObjectLib\BaseObject
$userId string the ID of the user to retrieve
return DataSift\Stone\ObjectLib\BaseObject