Property | Type | Description | |
---|---|---|---|
$attribute | End of sentences (used by the catch phrase format). | ||
$catchPhraseFormats | French catch phrase formats. | ||
$companySuffix | Company suffixes. | ||
$formats | French company name formats. | ||
$jobTitleFormat | |||
$noun | French nouns (used by the catch phrase format). | ||
$siretNicFormats | |||
$verb | French verbs (used by the catch phrase format). | ||
$wordsWhichShouldNotAppearTwice | An array containing string which should not appear twice in a catch phrase. |
Method | Description | |
---|---|---|
catchPhrase ( ) : string | Generates a french catch phrase. | |
catchPhraseAttribute ( ) : string | Returns a random catch phrase attribute. | |
catchPhraseNoun ( ) : string | Returns a random catch phrase noun. | |
catchPhraseVerb ( ) : string | Returns a random catch phrase verb. | |
siren ( $formatted = true ) : string | Generates a siren number (9 digits) that passes the Luhn check. | |
siret ( $formatted = true ) : string | Generates a siret number (14 digits) that passes the Luhn check. |
Method | Description | |
---|---|---|
isCatchPhraseValid ( string $catchPhrase ) : boolean | Validates a french catch phrase. |
public catchPhrase ( ) : string | ||
return | string |
public catchPhraseAttribute ( ) : string | ||
return | string |
public catchPhraseNoun ( ) : string | ||
return | string |
public catchPhraseVerb ( ) : string | ||
return | string |
protected static isCatchPhraseValid ( string $catchPhrase ) : boolean | ||
$catchPhrase | string | The catch phrase to validate. |
return | boolean | (true if valid, false otherwise) |
protected static $attribute |
protected static $catchPhraseFormats |
protected static $noun |
protected static $verb |