PHP Class PopulateHelpers, cakephp-db-migrations

Show file Open project: joelmoss/cakephp-db-migrations

Public Methods

Method Description
currency ( $min = 1, $max = 9 )
firstName ( )
lastMonth ( )
lorem ( )
name ( )
now ( )
number ( $min = 1, $max = 50 )
paragraph ( string $sentence_count = 3 ) : string Generate a single paragraph
paragraphs ( string $paragraph_count = 3 ) : array Generate an array of paragraphs
prefix ( )
randomDate ( )
sentence ( string $word_count = 4 ) : string Generate a random sentence
sentences ( string $sentence_count = 3 ) : array Generate an array of sentences
string ( $length = 4 )
suffix ( )
surname ( )
uuid ( )
word ( )
words ( string $num = 3 ) : array Generate an array of random words

Method Details

currency() public method

public currency ( $min = 1, $max = 9 )

firstName() public method

public firstName ( )

lastMonth() public method

public lastMonth ( )

lorem() public method

public lorem ( )

name() public method

public name ( )

now() public method

public now ( )

number() public method

public number ( $min = 1, $max = 50 )

paragraph() public method

Generate a single paragraph
Author: Caius Durling
public paragraph ( string $sentence_count = 3 ) : string
$sentence_count string around how many sentences the paragraph should contain
return string

paragraphs() public method

Generate an array of paragraphs
Author: Caius Durling
public paragraphs ( string $paragraph_count = 3 ) : array
$paragraph_count string how many paragraphs to return
return array

prefix() public method

public prefix ( )

randomDate() public method

public randomDate ( )

sentence() public method

Generate a random sentence
Author: Caius Durling
public sentence ( string $word_count = 4 ) : string
$word_count string around how many words the sentence should contain
return string

sentences() public method

Generate an array of sentences
Author: Caius Durling
public sentences ( string $sentence_count = 3 ) : array
$sentence_count string around how many sentences to generate
return array

string() public method

public string ( $length = 4 )

suffix() public method

public suffix ( )

surname() public method

public surname ( )

uuid() public method

public uuid ( )

word() public method

public word ( )

words() public method

Generate an array of random words
Author: Caius Durling
public words ( string $num = 3 ) : array
$num string how many words to return
return array